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
java.lang.NoSuchMethodError when calling compress(ByteBuffer, ByteBuffer) #251
Comments
I just noticed #247 - and have confirmed that |
Released 1.1.7.7 recompiled with JDK8. I still need a more reliable way to compile snappy-java with jdk11 to avoid this type of incompatibility issue. |
I am not sure how to do it with gradle, but jdk 9 introduced the "release" argument for javac. Here is the jdk 11 doc.
|
Yeah. I've tried |
Ah yes. That is noted:
|
|
ah. The doc says it can't be used with release option. Hm. We need to seek an option to use only JDK8/11 compatible ByteBuffer methods. |
@xerial In Apache Kafka, we use |
@ijuma Yes. I've tried |
I see. So instead of importing |
Now that pure-java Snappy code has been removed, we can enable |
Starting in version
1.1.7.4
of snappy, when I attempt to call compress(ByteBuffer, ByteBuffer), I see the following exception:This is almost certainly the issue that is described in this stackoverflow post. I suspect that between version
1.1.7.3
and1.1.7.4
of snappy, the JDK used to compile the official version of the library was updated.I've uploaded https://github.com/disturbedsaint/SnappyRepro with reproduction instructions.
The text was updated successfully, but these errors were encountered: