spotbugs / spotbugs

SpotBugs is FindBugs' successor. A tool for static analysis to look for bugs in Java code.

Home Page:https://spotbugs.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fails with OpenJDK 17-ea: Unsupported class file major version 61

klaraward opened this issue · comments

commented

Similar to #1229 but for Java 17

    [java] The following errors occurred during analysis:
     [java]   Error scanning java/lang/Object for referenced classes
     [java]     java.lang.IllegalArgumentException: Unsupported class file major version 61
     [java]       At org.objectweb.asm.ClassReader.<init>(ClassReader.java:195)
     [java]       At org.objectweb.asm.ClassReader.<init>(ClassReader.java:176)
     [java]       At org.objectweb.asm.ClassReader.<init>(ClassReader.java:162)
     [java]       At edu.umd.cs.findbugs.asm.FBClassReader.<init>(FBClassReader.java:35)

Seems ASM supports Java 17 in version 9.1 - https://asm.ow2.io/versions.html

Tested with OpenJDK build 17-ea+25-2252

Thanks for opening your first issue here! 😃
Please check our contributing guideline. Especially when you report a problem, make sure you share a Minimal, Complete, and Verifiable example to reproduce it in this issue.

Use version 4.2.2 or later. It can analyze class files created by JDK 17, we've confirmed it in #1561