Skip to content

Commit

Permalink
Fixed NoSichMethod issue (compat with Java 8): https://issues.redhat.…
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Jan 9, 2024
1 parent a83787c commit 2a8963f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/org/jgroups/nio/Buffers.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,10 @@ public ByteBuffer readLengthAndData(SocketChannel ch) throws Exception {
return (ByteBuffer) ((java.nio.Buffer) bufs[1].duplicate()).flip();
}
finally {
bufs[0].clear();
bufs[1].clear();
((java.nio.Buffer)bufs[0]).clear(); // same as above
((java.nio.Buffer)bufs[1]).clear();
//bufs[0].clear();
//bufs[1].clear();
}
}

Expand Down

0 comments on commit 2a8963f

Please sign in to comment.