Ubuntu Linux 4.15.0-39-generic #42-Ubuntu SMP Tue Oct 23 15:48:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.3, mixed mode)
Apache Maven 3.5.2
Steps to Reproduce
Switch to Java 9 or 10.
Check out wrensec-commons on the feature/fixes-for-22.x-jdk-8-builds branch (currently at b27bc0d).:
Attempt to build the project tests with mvn clean test -DignoreArtifactSigs.
Expected Results
Project builds successfully.
Tests complete successfully.
Actual Results
The build fails in chf-http-core, with the following error:
[ERROR] Tests run: 1101, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 18.137 s <<< FAILURE! - in TestSuite
[ERROR] testParseRfc850Date(org.forgerock.http.header.HeaderUtilTest) Time elapsed: 0.029 s <<< FAILURE!
java.lang.NullPointerException
at org.forgerock.http.header.HeaderUtilTest.testParseRfc850Date(HeaderUtilTest.java:151)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] HeaderUtilTest.testParseRfc850Date:151 ▒ NullPointer
[INFO]
[ERROR] Tests run: 1101, Failures: 1, Errors: 0, Skipped: 0
Additional Notes
This appears to be related to changes made for JEP 252 in Java 9 and later. If the failing tests are run through IntelliJ with -Djava.locale.providers=COMPAT,SPI passed to the JRE, the tests pass. Unfortunately, this workaround isn't a good option for us because it would mean requiring all applications that depend on Commons to modify the JVM args in order to run properly.
Affected Versions
feature/fixes-for-22.x-jdk-8-builds
Build Environment
Steps to Reproduce
feature/fixes-for-22.x-jdk-8-builds
branch (currently at b27bc0d).:mvn clean test -DignoreArtifactSigs
.Expected Results
Actual Results
The build fails in
chf-http-core
, with the following error:Additional Notes
This appears to be related to changes made for JEP 252 in Java 9 and later. If the failing tests are run through IntelliJ with
-Djava.locale.providers=COMPAT,SPI
passed to the JRE, the tests pass. Unfortunately, this workaround isn't a good option for us because it would mean requiring all applications that depend on Commons to modify the JVM args in order to run properly.