Closed bivashy closed 3 months ago
Having the same issue.
Edit: Applied bivashy's solution and published a package to https://gitlab.com/TauCu/libby/-/packages for those interested. Built on 1.3.0
Sorry for the delay, fixed in 1.3.1
Having the same issue with latest JDA release which is compiled in Java 21.
@frafol
Are you using the latest Libby version? Libby is using asm
and asm-common
9.7, which support up to Java 23.
Description
If library, or transitive dependencies, contains classes compiled with Java 19 or higher, we have such an exception:
Which means that Java 19+ classes cannot be relocated.
Reproducing the problem
This can be replicated with jackson-core 2.16.0, or with JDA 2.0.0-beta.20. Code for reproduction:
Libby 2.0.0-SNAPSHOT
was used.Possible solution
In my opinion we could just use ASM 9.7, because ASM is backward compatible, starting from ASM 4.0. But this may not be a perfect solution, please let me know if there is a are better approach. If you're satisfied with simple ASM version bump I could pull request that.