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
{{ message }}
Repository navigation
[Java] arrow-vector 16.1.0 has a change that breaks Java 8 support #41717
changed the title [-]arrow-vector 16.1.0 has a change that breaks Java 8 support[/-][+][Java] arrow-vector 16.1.0 has a change that breaks Java 8 support[/+]on May 19, 2024
Activity
pjfanning commentedon May 19, 2024
ByteBuffer inherits rewind from Buffer and Java 8 has this method.
https://docs.oracle.com/javase/8/docs/api/java/nio/Buffer.html#rewind--
I have seem issues in Java 8 where you need to cast to java.nio.Buffer for this to work reliably.
In https://issues.apache.org/jira/browse/HADOOP-18197, there were issues where we got on some Java8 installations.
We had to upgrade protobuf-java (which had the ByteBuffer code that was causing us issues) to get this fix:
protocolbuffers/protobuf@d40aadf
See https://www.morling.dev/blog/bytebuffer-and-the-dreaded-nosuchmethoderror/
pjfanning commentedon May 19, 2024
Arrow has this cast in a different part of the code.
arrow/java/c/src/main/java/org/apache/arrow/c/NativeUtil.java
Line 57 in dcdf4e6
Could we add a similar cast in the method that is causing issues?
arrow/java/vector/src/main/java/org/apache/arrow/vector/ipc/message/MessageSerializer.java
Line 704 in dcdf4e6
[-]arrow-vector 16.1.0 has a change that breaks Java 8 support[/-][+][Java] arrow-vector 16.1.0 has a change that breaks Java 8 support[/+]assignUser commentedon May 19, 2024
fyi: #38051
[KYUUBI #6391] Bump Arrow from 15.0.2 to 16.0.0
GH-41717: [Java][Vector] fix issue with ByteBuffer rewind in MessageS…
lidavidm commentedon May 20, 2024
Issue resolved by pull request 41718
#41718
pjfanning commentedon May 20, 2024
@lidavidm @assignUser This was also reported (@pan3793)
#41718 (comment)
lidavidm commentedon May 20, 2024
@vibhatha ^
apacheGH-41717: [Java][Vector] fix issue with ByteBuffer rewind in Me…
apacheGH-41717: [Java][Vector] fix issue with ByteBuffer rewind in Me…