-
Notifications
You must be signed in to change notification settings - Fork 139
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
Support Java 21 (Unsupported class file major version 65) #733
Comments
Hello, the analysis of Java 21 bytecode is indeed not supported at this point. |
Hi @gtoison, thanks for your reply. I just checked the maven plugins which seems to support java 21. The seem to override the asm dependency using
This should work for sonar-findbugs too, I just cloned the repo and gave it a try. lars@Wintermute target % jar tvf sonar-findbugs-plugin.jar|grep asm Would you accept a PR? |
Yes, that would be very helpful! |
Issue Description
sonar-findbugs could not analyse a project with source level / release 21.
Possible root cause: Old asm version in spot bugs, see spotbugs/spotbugs#2567
Asm Dependencies loaded
Environment
Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9)
Maven home: /Users/lars/.sdkman/candidates/maven/current
Java version: 21, vendor: BellSoft, runtime: /Users/lars/.sdkman/candidates/java/21-librca
Default locale: de_DE, platform encoding: UTF-8
OS name: "mac os x", version: "13.6", arch: "aarch64", family: "Mac"
...
[DEBUG] 09:27:49.828 * Findbugs 4.2.3 (findbugs)
The text was updated successfully, but these errors were encountered: