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

Error while building: Too many arguments for public abstract fun get(): Byte defined in java.nio.ByteBuffer #2

Closed
not-ivy opened this issue Sep 24, 2020 · 3 comments

Comments

@not-ivy
Copy link

not-ivy commented Sep 24, 2020

sourtaste000@pineapple-2 hl-mc-kt % ./gradlew build

> Task :compileKotlin FAILED
e: /Users/sourtaste000/hl-mc-kt/src/main/kotlin/protocol/NBT.kt: (82, 28): Too many arguments for public abstract fun get(): Byte defined in java.nio.ByteBuffer
e: /Users/sourtaste000/hl-mc-kt/src/main/kotlin/protocol/NBT.kt: (82, 31): Too many arguments for public abstract fun get(): Byte defined in java.nio.ByteBuffer

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileKotlin'.
> Compilation error. See log for more details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 7s
1 actionable task: 1 executed
sourtaste000@pineapple-2 hl-mc-kt % 
@not-ivy
Copy link
Author

not-ivy commented Sep 24, 2020

sourtaste000@pineapple-2 ~ % /usr/libexec/java_home -V
Matching Java Virtual Machines (4):
    15, x86_64: "AdoptOpenJDK 15"       /Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Home
    11.0.8, x86_64:     "AdoptOpenJDK 11"       /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
    11.0.8, x86_64:     "Java SE 11.0.8"        /Library/Java/JavaVirtualMachines/jdk-11.0.8.jdk/Contents/Home
    1.8.0_261, x86_64:  "Java SE 8"     /Library/Java/JavaVirtualMachines/jdk1.8.0_261.jdk/Contents/Home

/Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Home

@not-ivy
Copy link
Author

not-ivy commented Sep 24, 2020

sourtaste000@pineapple-2 ~ % java -version
openjdk version "15" 2020-09-15
OpenJDK Runtime Environment AdoptOpenJDK (build 15+36)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 15+36, mixed mode, sharing)
sourtaste000@pineapple-2 ~ % 

@willemml
Copy link
Owner

Cannot reproduce on latest, closing this, reopen if it still occurs.

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