We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Per jetty/jetty.project#3244
Like many other projects (Tomcat, MongoDB, etc.) compiling with JDK 9+ with release 8 produces incorrect bytecode for these ByteBuffer methods:
Running a Jetty compiled with JDK 9+ with release 8 in a JDK 8 JVM will produce a NoSuchMethodError.
The solution is to cast the ByteBuffer to Buffer when calling those methods:
((Buffer)byteBuffer).position(0);
The text was updated successfully, but these errors were encountered:
Cast ByteBuffer objects when calling invalid Java9 methods
bed48fd
for example: ((Buffer)byteBuffer).position(0); resolves #36
jordanpadams
Successfully merging a pull request may close this issue.
🐛 Describe the bug
Per jetty/jetty.project#3244
Like many other projects (Tomcat, MongoDB, etc.) compiling with JDK 9+ with release 8 produces incorrect bytecode for these ByteBuffer methods:
limit(int)NoneRunning a Jetty compiled with JDK 9+ with release 8 in a JDK 8 JVM will produce a NoSuchMethodError.
The solution is to cast the ByteBuffer to Buffer when calling those methods:
The text was updated successfully, but these errors were encountered: