Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.5.0
-
None
-
Groovy Version: 2.5.0 JVM: 10.0.1 Vendor: "Oracle Corporation" OS: Mac OS X
Description
Running groovy 2.5.0 on Java 10.0.1 appears broken due to module dependencies. Groovy 2.4.15 runs fine with the same Java version on the same machine, and moving back to 2.4.15 fixes the issue.
The issue is seen running groovy, groovyc or groovysh, which result in the attached stack traces.
The missing dependency is on JAXB. The specific class not found depends on what I'm running.
For groovysh this results in java.lang.NoClassDefFoundError: Unable to load class groovy.xml.jaxb.JaxbGroovyMethods due to missing dependency javax/xml/bind/JAXBContext
For groovy (running the very trivial script attached) this results in java.lang.NoClassDefFoundError: Unable to load class groovy.xml.jaxb.JaxbGroovyMethods due to missing dependency javax/xml/bind/Unmarshaller