You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Gradle plugin graphql-java-codegen produces invalid Java source code for GraphQL types which implement an interface if the option generateParameterizedFieldsResolvers is disabled.
The Java interface A has a method String getFoo(String arg)with a parameter while the Java class B has a method public String getFoo() * without* parameters.
This prevents class B to be compiled, because the contract of interface A is not fulfilled.
Issue Description
The Gradle plugin graphql-java-codegen produces invalid Java source code for GraphQL types which implement an interface if the option
generateParameterizedFieldsResolvers
is disabled.This bug might have been introduced by #913 .
Steps to Reproduce
GraphQL:
Expected Result
The Java interface
A
and classB
should have a methodString getFoo()
without parameters.A.java
B.java
Actual Result
The Java interface
A
has a methodString getFoo(String arg)
with a parameter while the Java classB
has a methodpublic String getFoo()
* without* parameters.This prevents class
B
to be compiled, because the contract of interfaceA
is not fulfilled.A.java
B.java
Your Environment and Setup
The text was updated successfully, but these errors were encountered: