-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
Hello,
The current master failed to build with OpenJDK 17.
A first issue is the JaCoCo version (0.8.5 seems incompatible with Java 17) -> Updating it to 0.8.7.
The next issue is a little bit trickier since it involves xstream:
[...]
[ERROR] gate.xml.TestXml.testAnnotationConsistencyForSaveAsXml Time elapsed: 0.011 s <<< ERROR!
com.thoughtworks.xstream.converters.ConversionException:
No converter available
---- Debugging information ----
message : No converter available
type : java.util.Arrays$ArrayList
converter : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
message[1] : Unable to make field protected transient int java.util.AbstractList.modCount accessible: module java.base does not "opens java.util" to unnamed module @64a294a6
-------------------------------
[...]
For reference:
- Fails on Java 16 for java.util.Arrays$ArrayList and java.util.Collections$EmptyList x-stream/xstream#253
- Java 17 - Unable to make field protected transient int java.util.AbstractList.modCount accessible x-stream/xstream#259
- How much longer for XStream? x-stream/xstream#262
- https://github.com/gama-platform/gama/issues/3288
A workaround to get the tests go green is to add the following --add-opens to pom.xml:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M8</version>
<configuration>
<argLine>
--add-opens java.base/java.util=ALL-UNNAMED
</argLine>
</configuration>
</plugin>I assume add --add-opens java.base/java.util=ALL-UNNAMED to the java -jar call will do at runtime.
Any plans to support Java 17?
Metadata
Metadata
Assignees
Labels
No labels