Fail to build under Java17
See original GitHub issueChronicle-Bytes % mvn test -Pjava11,java17 -Dtest=UnsafeRWObjectTest
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running net.openhft.chronicle.bytes.UnsafeRWObjectTest
[main] INFO net.openhft.chronicle.core.Jvm - Chronicle core loaded from file:/Users/pemi/.m2/repository/net/openhft/chronicle-core/2.22ea7-SNAPSHOT/chronicle-core-2.22ea7-SNAPSHOT.jar
[ERROR] Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.134 s <<< FAILURE! - in net.openhft.chronicle.bytes.UnsafeRWObjectTest
[ERROR] net.openhft.chronicle.bytes.UnsafeRWObjectTest.longObject Time elapsed: 0.09 s <<< FAILURE!
org.junit.ComparisonFailure:
expected:<00000000 0[1 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 ยทยทยทยทยทยทยทยท ยทยทยทยทยทยทยทยท
00000010 03 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ยทยทยทยทยทยทยทยท ยทยทยทยทยทยทยทยท
00000020 05 00 00 00 00 00 00 00 06 00 00 00 00 00 00 00 ยทยทยทยทยทยทยทยท ยทยทยทยทยทยทยทยท
00000030 07 00 00 00 00 00 00 00 08] 00 00 00 00 00 00 0...> but was:<00000000 0[8 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 ยทยทยทยทยทยทยทยท ยทยทยทยทยทยทยทยท
00000010 03 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ยทยทยทยทยทยทยทยท ยทยทยทยทยทยทยทยท
00000020 05 00 00 00 00 00 00 00 06 00 00 00 00 00 00 00 ยทยทยทยทยทยทยทยท ยทยทยทยทยทยทยทยท
00000030 07 00 00 00 00 00 00 00 01] 00 00 00 00 00 00 0...>
at net.openhft.chronicle.bytes.UnsafeRWObjectTest.longObject(UnsafeRWObjectTest.java:47)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] UnsafeRWObjectTest.longObject:47 expected:<00000000 0[1 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 ยทยทยทยทยทยทยทยท ยทยทยทยทยทยทยทยท
00000010 03 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ยทยทยทยทยทยทยทยท ยทยทยทยทยทยทยทยท
00000020 05 00 00 00 00 00 00 00 06 00 00 00 00 00 00 00 ยทยทยทยทยทยทยทยท ยทยทยทยทยทยทยทยท
00000030 07 00 00 00 00 00 00 00 08] 00 00 00 00 00 00 0...> but was:<00000000 0[8 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 ยทยทยทยทยทยทยทยท ยทยทยทยทยทยทยทยท
00000010 03 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ยทยทยทยทยทยทยทยท ยทยทยทยทยทยทยทยท
00000020 05 00 00 00 00 00 00 00 06 00 00 00 00 00 00 00 ยทยทยทยทยทยทยทยท ยทยทยทยทยทยทยทยท
00000030 07 00 00 00 00 00 00 00 01] 00 00 00 00 00 00 0...>
[INFO]
[ERROR] Tests run: 3, Failures: 1, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.065 s
[INFO] Finished at: 2021-09-29T17:42:40+02:00
[INFO] ------------------------------------------------------------------------
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Build fails under Java 17 #5229 - zulip/zulip-mobile - GitHub
When attempting to run the project under Java 17, the build fails with the following error: FAILURE: Build failed with an exception.
Read more >2051175 โ jgrapht fails to build with java-17-openjdk
After this date the usual fedpkg build in f36 and up should do. We run two reruns your package failed both. We had...
Read more >Java 17 compilation error โ IDEs Support (IntelliJ Platform)
Trying to compile and run java 17 switch pattern, initially was showing error with red underlined. Once I have set the language level...
Read more >Java 17: Maven doesn't give much information about the error ...
This failure is likely due to an issue between java 17 and older lombok versions. Building with java 17.0.1, lombok 1.18.20 and maven...
Read more >Consolidated JDK 17 Release Notes - Oracle
36, JDK-8286625, hotspot/compiler, C2 fails with assert(!n->is_Store() ... Update Visual Studio 2022 to version 17.1.0 for Oracle builds on Windows.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Yes. I built it under Java17 and then tested it. Still, it might point to a real problem and I think itโs worth investigating.
On
developit appears to be passing now.