Skip to content

Type name collisions with java pacakges #42

@JacobMountain

Description

@JacobMountain

Steps to reproduce
Schema:

schema {
    query: Query
}
type Query {
    character: Character
}
type Character {
    id: Int
    name: String
}

Interface:

package com.example;

import com.jacobmountain.graphql.client.GraphQLClient;
import com.example.dto.Character; // <-- 

@GraphQLClient(
        schema = "Schema.gql"
)
public interface MyClient {

    public Character getCharacter();

}

Generated implementation:

package com.example;

import com.jacobmountain.graphql.client.GraphQLClient;
import java.util.Character; // <-- this is the problem

@GraphQLClient(
        schema = "Schema.gql"
)
public interface MyClient {

    public Character getCharacter() {
        // impl...
    }

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions