[
https://issues.apache.org/jira/browse/SCXML-287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shalom Crown updated SCXML-287:
-------------------------------
Description:
When compiling with the Java-11 compiler (although source/binary version is
set to 1.8), the compilation fails with:
{code}
[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
{code}
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|https://stackoverflow.com/questions/52502189/java-11-package-javax-xml-bind-does-not-exist]
The fix is to add dependency:
{code}
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>2.3.3</version>
</dependency>
{code}
was:
When compiling with the Java-11 compiler (although source/binary version is
set to 1.8), the compilation fails with:
{code}
[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
{code}
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|[https://stackoverflow.com/questions/52502189/java-11-package-javax-xml-bind-does-not-exist]
The fix is to add dependency:
{code}
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>2.3.3</version>
</dependency>
{code}
> Compilation error when compiling with Java-11
> ---------------------------------------------
>
> Key: SCXML-287
> URL: https://issues.apache.org/jira/browse/SCXML-287
> Project: Commons SCXML
> Issue Type: Bug
> Affects Versions: 2.0
> Reporter: Shalom Crown
> Priority: Major
>
> When compiling with the Java-11 compiler (although source/binary version is
> set to 1.8), the compilation fails with:
> {code}
> [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
> {code}
> 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|https://stackoverflow.com/questions/52502189/java-11-package-javax-xml-bind-does-not-exist]
> The fix is to add dependency:
> {code}
> <dependency>
> <groupId>jakarta.xml.bind</groupId>
> <artifactId>jakarta.xml.bind-api</artifactId>
> <version>2.3.3</version>
> </dependency>
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)