Maven Sonar Scanner not working with JDK 16

HI @markw,

Welcome to the community!

If we’re going to get precise… :slightly_smiling_face:

In fact there is a distinction between

  • the JDK version you can run analysis with
  • the language spec version you can run analysis on

Ehm… well maybe to some degree. If you’ve had success analyzing code written to Java 16, then that’s great but there is a possibility that parsing may choke (and therefore analysis fail for the file) on features introduced in later language versions.

And SonarQube 9.1 will introduce real support of Java 16.

 
HTH
Ann