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
graphql.schema.idl.SchemaGeneratorHelperExt.kt creates a split package graphql.schema.idl. When graphql-java-tools and graphql-java are both required modules in a Java application, it will not compile. The Java module system does not allow for split packages and it's a pretty hairy runtime flag combination to get around this (I still haven't gotten it to completely work).
#282 had a this issue with a different class. Looks like this is likely a nearly identical issue where the extension function is surfacing a protected method. The solution to the old issue was for graphql-java to make the method in question public - hopefully this can be fixed the same way?
Thanks!
Expected behavior
The application should compile.
Actual behavior
The application fails compilation with this error:
the unnamed module reads package graphql.schema.idl from both com.graphqljava and graphql.java.tools
Steps to reproduce the bug
Create a simple Maven Java project that uses the latest graphql-java-tools (currently 11.1.1).
Add a module descriptor to the project (src/main/java/module-info.java) that requires both graphql-java-tools and graphql-java, e.g.
Description
graphql.schema.idl.SchemaGeneratorHelperExt.kt
creates a split packagegraphql.schema.idl
. When graphql-java-tools and graphql-java are both required modules in a Java application, it will not compile. The Java module system does not allow for split packages and it's a pretty hairy runtime flag combination to get around this (I still haven't gotten it to completely work).#282 had a this issue with a different class. Looks like this is likely a nearly identical issue where the extension function is surfacing a protected method. The solution to the old issue was for graphql-java to make the method in question public - hopefully this can be fixed the same way?
Thanks!
Expected behavior
The application should compile.
Actual behavior
The application fails compilation with this error:
the unnamed module reads package graphql.schema.idl from both com.graphqljava and graphql.java.tools
Steps to reproduce the bug
src/main/java/module-info.java
) that requires both graphql-java-tools and graphql-java, e.g.The text was updated successfully, but these errors were encountered: