What exactly does Java 14 support mean with respect to SonarQube 8.5?
- I have SonarQube 8.5.1 installed along with JDK 14.
- Client is using JDK 14 to compile.
- Client code uses the new Java switch statement.
<dependency> <groupId>org.sonarsource.scanner.maven</groupId> <artifactId>sonar-maven-plugin</artifactId> <version>184.108.40.2066</version> </dependency>
However, I’m seeing the following when running
[ERROR] Unable to parse source file : 'src/main/java/com/xyz/AbstractBaseModel.java' [ERROR] Parse error at line 71 column 21: Switch Expressions are supported from Java 14 onwards only
The most recent version of the sonar scanner, as noted above, was released in Oct 2019 while Java 14 was released in Mar 2020.
So, what exactly does it mean that Java 14 is supported in SonarQube when the scanner is not receiving the necessary updates to provide that support?