Sonaqube Server 8.9.6 doesn't support Java 17 code analysis

SonarQube enterprise Version 8.9.6

We are running a build on Jenkins to upgrade SAP Hybris that uses JDK 17 for code compilation, the build stage is working fine. At the time of Sonar Scan Stage, it’s failing with the below error:

Caused by: net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InaccessibleObjectException–>Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte,int,int, throws java.lang.ClassFormatError accessible: module java.base does not “opens java.lang” to unnamed module

Does the Sonar 8.9.6 support analysis for application running Java 17.

Welcome :slight_smile:

the support for Java17 on the scanner side has only recently be added for Sonarqube 9.9.0


1 Like