Like many other projects (Tomcat, MongoDB, etc.) compiling with JDK 9+ with release 8 produces incorrect bytecode for these ByteBuffer methods:
position(int)
limit(int)
mark()
reset()
clear()
flip()
rewind()
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);
torokati44, jiaminzou888, coleHafner, bumfo, neo-expert and 7 more
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4