Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-8631

Groovy 2.5.0 broken with Java 10.0.1 on MacOS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.0
    • 2.5.2
    • groovy-runtime, Groovysh
    • 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

       

       

       

      Attachments

        1. groovysh_stacktrace.txt
          11 kB
          Phil Mitchell
        2. hello_stacktrace.txt
          0.7 kB
          Phil Mitchell
        3. hello.groovy
          0.0 kB
          Phil Mitchell

        Activity

          People

            paulk Paul King
            brundlemac Phil Mitchell
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: