question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. Itย collects links to all the places you might be looking at while hunting down a tough bug.

And, if youโ€™re still stuck at the end, weโ€™re happy to hop on a call to see how we can help out.

Fail to build under Java17

See original GitHub issue
Chronicle-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:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
minborgcommented, Sep 30, 2021

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.

0reactions
peter-lawreycommented, Mar 17, 2022

On develop it appears to be passing now.

peter@dev-a:~/Build-All/Chronicle-Bytes$ java --version
openjdk 17.0.2 2022-01-18
OpenJDK Runtime Environment (build 17.0.2+8-86)
OpenJDK 64-Bit Server VM (build 17.0.2+8-86, mixed mode, sharing)
peter@dev-a:~/Build-All/Chronicle-Bytes$ mvn clean install -Pjava11,java17

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:09 min
[INFO] Finished at: 2022-03-17T14:20:29Z
[INFO] ------------------------------------------------------------------------
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found