Uploaded image for project: 'Commons SCXML'
  1. Commons SCXML
  2. SCXML-287

Compilation error when compiling with Java-11

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0
    • None
    • None

    Description

       When compiling with the Java-11 compiler (although source/binary version is set to 1.8), the compilation fails with:

      [ERROR] /home/shalomc/workspace/opensource/commons-scxml/src/test/java/org/apache/commons/scxml2/w3c/W3CTests.java:[31,22] package javax.xml.bind does not exist
      
      [ERROR] /home/shalomc/workspace/opensource/commons-scxml/src/test/java/org/apache/commons/scxml2/w3c/W3CTests.java:[139,6] cannot find symbol
      [ERROR]   symbol:   class XmlRootElement
      [ERROR]   location: class org.apache.commons.scxml2.w3c.W3CTests
      

      Since other parts of my project need to be compiled with Java 11, and commons SCXML is compiled from source every time, this is problematic.

      See: Stack overflow question

      The fix is to add dependency:

              <dependency>
                <groupId>jakarta.xml.bind</groupId>
                <artifactId>jakarta.xml.bind-api</artifactId>
                <version>2.3.3</version>
              </dependency>
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            shalomc Shalom Crown
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: