[jira] [Resolved] (GROOVY-8631) Groovy 2.5.0 broken with Java 10.0.1 on MacOS

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Resolved] (GROOVY-8631) Groovy 2.5.0 broken with Java 10.0.1 on MacOS

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/GROOVY-8631?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul King resolved GROOVY-8631.
-------------------------------
       Resolution: Fixed
         Assignee: Paul King
    Fix Version/s: 2.5.2

I have merged Daniel's changes to the startGroovy[.bat] script files from master - I didn't realise that they weren't merged into GROOVY_2_5_X already. These automatically add the --add-modules entries when starting the groovy tools. We'll need an alternative strategy for JDK11 but 2.5 doesn't claim to support that (yet).

> Groovy 2.5.0 broken with Java 10.0.1 on MacOS
> ---------------------------------------------
>
>                 Key: GROOVY-8631
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8631
>             Project: Groovy
>          Issue Type: Bug
>          Components: groovy-runtime, Groovysh
>    Affects Versions: 2.5.0
>         Environment: Groovy Version: 2.5.0 JVM: 10.0.1 Vendor: "Oracle Corporation" OS: Mac OS X
>            Reporter: Phil Mitchell
>            Assignee: Paul King
>            Priority: Major
>             Fix For: 2.5.2
>
>         Attachments: groovysh_stacktrace.txt, hello.groovy, hello_stacktrace.txt
>
>
> 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
>  
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)