Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ByteBuffer.clear() method derives java.lang.NoSuchMethodError on java8 #1836

Closed
LiuZheng-China opened this issue Feb 24, 2021 · 1 comment
Closed

Comments

@LiuZheng-China
Copy link

ByteBuffer.clear() method behaves different on java 8 and java9 above,
when calling ByteBufferPool.release(this.buffer) in SeaweedOutputStream class, which calls obj.clear() method in ByteBufferPool class, No SuchMethodError appears on java 8.
The reason and solution is described in this article,
https://www.jianshu.com/p/8f219d981aa9?share_token=c541612b-25bd-4155-b02f-ddd58fd16771

@chrislusf
Copy link
Collaborator

Thanks a lot for the issue report and the solution! Added the fix. You are also welcome to create a PR later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants