Skip to content

IllegalArgumentException: Unsupported class file major version 69 (Java 25) #1399

Description

Description: We are currently running a SonarQube analysis on a project compiled with Java 25 (Class file version 69). The scan is failing consistently with an IllegalArgumentException indicating that the class file version is unsupported.

I am currently using [sonar-findbugs] version 4.5.2. I see that version 4.6.0 was released recently with upgrades to SpotBugs 4.8.x/4.9.x. Before performing a system-wide upgrade, please confirm whether the latest version (v.4.6.0) or the underlying SpotBugs version currently supports Java 25 bytecode (major version 69).

Steps to Reproduce

  • Compile a Java project using JDK 25 (e.g., Early Access builds).

  • Run [sonar-scanner] plugin installed.

  • Observe the crash during the FindBugs analysis phase.

Exception Trace

Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 69
      At org.objectweb.asm.ClassReader.<init>(ClassReader.java:200)
      At org.objectweb.asm.ClassReader.<init>(ClassReader.java:180)
      At org.objectweb.asm.ClassReader.<init>(ClassReader.java:166)
      At edu.umd.cs.findbugs.asm.FBClassReader.<init>(FBClassReader.java:35)
      At edu.umd.cs.findbugs.classfile.engine.asm.ClassReaderAnalysisEngine.analyze(ClassReaderAnalysisEngine.java:48)

Environment

SonarQube Version: Community Build v25.5.0.107428
Sonar Findbugs Plugin Version: 4.5.2
Java Version (Compilation): Java 25 (Class file major version 69)

Question: Does SonarFindBugs v4.6.0 (via its updated SpotBugs dependency) support ASM reading of Java 25 bytecode? If not, is there a planned release or a specific configuration required to support Class File Version 69?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions