You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current Bookkeeper maven build will produce invalid binaries for Java 8 when compiled on Java 11.
Here's an example of the problem:
2024-02-07T15:33:44,901 - ERROR - [BookieJournal-3181:BookieCriticalThread@41] - Uncaught exception in thread BookieJournal-3181 and is exiting!
java.lang.NoSuchMethodError: java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer;
at org.apache.bookkeeper.bookie.JournalChannel.writeHeader(JournalChannel.java:255) ~[org.apache.bookkeeper-bookkeeper-server-4.17.0-SNAPSHOT.jar:4.17.0-SNAPSHOT]
at org.apache.bookkeeper.bookie.JournalChannel.<init>(JournalChannel.java:188) ~[org.apache.bookkeeper-bookkeeper-server-4.17.0-SNAPSHOT.jar:4.17.0-SNAPSHOT]
at org.apache.bookkeeper.bookie.JournalChannel.<init>(JournalChannel.java:124) ~[org.apache.bookkeeper-bookkeeper-server-4.17.0-SNAPSHOT.jar:4.17.0-SNAPSHOT]
at org.apache.bookkeeper.bookie.Journal.run(Journal.java:996) ~[org.apache.bookkeeper-bookkeeper-server-4.17.0-SNAPSHOT.jar:4.17.0-SNAPSHOT]
To Reproduce
Compile binaries on Java 11.
Run bookkeeper on Java 8.
Expected behavior
The binaries should be Java 8 compatible as long as we provide the support.
Additional context
Similar problem was solved in Pulsar by properly using maven.compiler.release setting.
The text was updated successfully, but these errors were encountered:
BUG REPORT
Describe the bug
The current Bookkeeper maven build will produce invalid binaries for Java 8 when compiled on Java 11.
Here's an example of the problem:
To Reproduce
Expected behavior
The binaries should be Java 8 compatible as long as we provide the support.
Additional context
Similar problem was solved in Pulsar by properly using maven.compiler.release setting.
The text was updated successfully, but these errors were encountered: