Skip to content

Error during runtime on the getter process with a Java reserved word #166

Closed
@988554114

Description

@988554114

Hello,

In the graphql specification schema we have some field like 'package, class...') and these fields are reserved words used by java,
but we are on client part and normally .
We can't change schema.

The problem is when the graphql-java-generator parse these fields.
Client graphQL transform some attributs found into schema, e.g 'package' by the java field '_package' (because it is a java word)
and create a getPackage() method to acceded on _package field value.

But during the graphql client runtime, a get_package error is occured, because the get is build dynamically
by fields introspection and the get_package is call and not found !.
I think that the problem can be fix by generate the field package_ instead _package.

maven version:

com.graphql-java-generator
graphql-java-client-runtime
1.18.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions