-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Docker logs throws NoSuchMethodError #88
Comments
Good catch! I wasn't aware of that, I found out that jdk9 introduced different types for some of the |
It won't be that easy, after configuring the Going to give it another try tomorrow... |
It seems that a |
Is this a BUG REPORT or FEATURE REQUEST?: BUG
Description
When calling DockerClient#logs a
java.lang.NoSuchMethodError
with messagejava.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer
is thrown. As of my current research, this seems to be a problem when compiling with Java > 9 for a target JVM < 9. I'm using Java 8 on my current project.Found some useful information here: https://www.baeldung.com/maven-java-version. This states that
By default, the -source and -target options don't guarantee a cross-compilation.
Probably we should have something like this in the pom.xml:
instead of:
How to reproduce
Run a simple Java project on Java 1.8 which contains the following class:
What do you expect
I would expect
ls.hasNext()
to return a boolean.What happened instead
ls.hasNext()
throwsjava.lang.NoSuchMethodError: java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer
Error.Software:
docker version
:org.mandas:docker-client:2.0.1:shaded
Full backtrace
The text was updated successfully, but these errors were encountered: