If the java version property (sonar.java.version) is misconfigured and forces a java version <= Java 8, then the analyzer fails at parsing module-info.java files.
For example, when parsing this file :
These error messages appears in the log:
Having module-info.java files can only exists in java 9+ projects. Encountering such files in analysis while being forced a java 8 version is therefore unexpected.
- The analyzer should not fail parsing (we know how to parse them)
- The analyzer should emit a warning (logs) about misconfiguration