-
Notifications
You must be signed in to change notification settings - Fork 189
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
Tycho can't be build with Java 21 #2950
Comments
@laeubi There was some issue with moving away from it (as it's deprecated) but I can't recall the details |
It might work to use a more recent asm version as a dependency for that plugin: https://mvnrepository.com/artifact/org.ow2.asm/asm in general the problem was that the JSR annotations previously used an old version in maven so they don't work on Java 17 compiles classes, now we moved to Maven 3.9.x it should work, but is a lot of work to migrate. But I'm a bit curious why java 21 is actually used, maybe we need some source/target configuration somewhere? |
Would you please share an example of such migration to JSF (if you have handy)? In case someone decides to tackle this issue. |
I figured it after asking, there is a pretty detailed doc on the topic https://github.com/eclipse/sisu.plexus/wiki/Plexus-to-JSR330 |
Yes that's basically the reference, I planned to work on this for Maven4 /Tycho5 as we have to rewrite some stuff probably there ... |
My build is failing when I set target level to 21:
|
Yes JDT (the compiler used by Tycho) does not yet support Java 21, you can use a snapshot or wait for the next release on 2023-12 |
Newer asm has been needed. Fixes eclipse-tycho#2950
Newer asm has been needed. Fixes #2950
Using Java 21 as system JVM (as e.g Fedora 39 ships with and probably others) makes compiling Tycho fail with:
The text was updated successfully, but these errors were encountered: