Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add explicit JAXB dependencies in the junit-runner so it works in Java 9+ without --add-modules=java.xml.bind #5667
In Java 9 and 10 they have removed default access for the JAXB classes from the JDK. In order to use them you need to add
Add explicit dependencies for the JAXB jars
The junit-testrunner can run under Java 9 and Java 10 with no additional command line flags.
Currently there isn't an easy way to test this in the repo. I tested it locally by taking the command line run of
Did you try updating the platform info for java for pants to 10? Pants may be able to run tests with 10, but it looks like, right now, we only have declarations for 6-8 https://github.com/pantsbuild/pants/blob/master/pants.ini#L279-L285