Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When i upgrade the gradle version to 6, below error is coming #16

Open
ghost opened this issue Feb 10, 2020 · 1 comment
Open

When i upgrade the gradle version to 6, below error is coming #16

ghost opened this issue Feb 10, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 10, 2020

When i upgrade the gradle version to 6, below error is coming. The samples in https://github.com/reaster/schema-gen-examples are also failing with the same error.

at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '[hash, toString, equals, setter, getter, toStringBuilder, adder]' with class 'java.util.ImmutableCollections$SetN' to class 'java.util.EnumSet' due to: groovy.lang.GroovyRuntimeException: Could not find matching constructor for: java.util.EnumSet(com.javagen.schema.model.MMethod$Stereotype, com.javagen.schema.model.MMethod$Stereotype, com.javagen.schema.model.MMethod$Stereotype, com.javagen.schema.model.MMethod$Stereotype, com.javagen.schema.model.MMethod$Stereotype, com.javagen.schema.model.MMethod$Stereotype, com.javagen.schema.model.MMethod$Stereotype)
at com.javagen.schema.java.JavaPreEmitter.(JavaPreEmitter.groovy:54)

schemaGen {
java {
schemaURL = new URL('file:src/main/resources/atom.xsd')
packageName = 'com.sap.java'
addSuffixToEnumClass = null
anyPropertyName = 'text'
}
}

when i remove the above code, it works!!! But we need this configuration. Any help???

@ghost
Copy link
Author

ghost commented Feb 10, 2020

the problem is Java version, when i use Java8, it's working. With the Java11, it throws above error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants