Skip to content

Type name collisions with java pacakges #42

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...
    }

}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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