Hi,
The analysis of a code in Java 17 generated a lot of errors.
It seems that SonarQube 7.9 doesn’t understand all syntax include in the Java 17.
How it could be resolved?
Thank in advance for your help!
Hi,
The analysis of a code in Java 17 generated a lot of errors.
It seems that SonarQube 7.9 doesn’t understand all syntax include in the Java 17.
How it could be resolved?
Thank in advance for your help!
Hi,
Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:
7.9 → 8.9.9 → 9.5
You may find the Upgrade Guide and the LTS-to-LTS Upgrade Notes helpful. If you have questions about upgrading, feel free to open a new thread for that here.
You will find that Java 17 handled actually exists in the Latest version.
HTH,
Ann
Hi,
Versions of Sonarqube that can be used are limited in our society.
Also some versions can be deployed.
Currently, the maximum version that can be used is: Sonarqube 8.9.8.
So, I understand that Sonarqube in version 7.9 can not analyse Java code in version 17?
Thanks for your help, and your always quick answers.
Hi,
8.9.8 is certainly suitable for an upgrade path. But it won’t handle Java 17. Parsing support for Java 17 started in SonarQube 9.2.
Correct.
HTH,
Ann
Ok. Thanks a lot for your answers.
I guess I already have the answer… But, there is no plugin that handle the analysis of JAVA 17 with a Sonarqube 8.9.8 or Sonarqube 7.9 ?
Hi,
There is not.
You’ll need to upgrade to the latest SonarQube version.
Ann