Support for Java 13

Using org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.8.0.1969 and executing
gradlew sonarqube within my project I get:

Unable to create symbol table for : /home/rli/devel/repository/source/java/project/products/KeywordSyncServer/src/main/java/com/synedra/server/kwsync/AIMSynchronizer.java
java.lang.IllegalArgumentException: Unsupported class file major version 57
at org.objectweb.asm.ClassReader.(ClassReader.java:184)
at org.objectweb.asm.ClassReader.(ClassReader.java:166)
at org.objectweb.asm.ClassReader.(ClassReader.java:152)
at org.sonar.java.resolve.BytecodeCompleter.loadClass(BytecodeCompleter.java:244)
at org.sonar.java.resolve.Symbols.(Symbols.java:176)
at org.sonar.java.resolve.SemanticModel.createFor(SemanticModel.java:60)
at org.sonar.java.model.VisitorsBridge.visitFile(VisitorsBridge.java:121)

It seems like Java 13 (which we are using) is not yet supported.

Is there a way to specify the version of the ASM Library to be used (7.2 would support Java 13/14)?

Are there any plans to support Java 13 in the near term?

3 Likes

Since today Java 13 is outdated.

Are there any plans to support at least Java 14?

Any news on this thread? most of our projects are Java 13, and without this support we can’t scan them with SonarQube.

@Amir_Kibbar Maybe it will help you, but I can confirm our projects are using Java 13 and are analyzed successfully under the following setup:

  • Java source and target versions are 13
  • org.sonarqube gradle plugin version 2.8
  • Analysis is performed on Jenkins using AdoptOpenJDK jdk-13.0.2+8 build
  • Sonar server: sonarcloud.io
  • No other significant configuration

Unfortunately, same can’t be said about Java 14. It is now a full month after GA release and Sonar still does not support it (and is the only thing blocking the upgrade in our case).

JDK14 issue is described here: Issue java 14: java.lang.NoClassDefFoundError: java/util/jar/Pack200

@grimsa thanks for the response, as you can see by my very late response, we simply stopped using Sonar because we couldn’t wait for them to support Java 13 and 14.

All our projects have upgraded to Java 13, and we’re about to start upgrading to 14.