SonarLint Issue with OpenJDK 15

SonarQube: Version 7.4 (build 18908)
SonarLint: 5.8.1
Client Machine: JDK 1.8.0_202
Eclipse: 2021-03R (Comes with OpenJDK 15.0.2)

Description:
The SonarLint will automatically validate the file during on-save, but it failed with errors and unable to highlights any sonar violation when using Eclipse 2021-03R default OpenJDK 15.0.2. It will work if used with Oracle JDK.

Edit the eclipse.ini file to change the -vm argument to point to the JDK

NOTE: Refer to Help #40989 for more info.

Steps to reproduce:

  1. Have SonarQube 7.4 Community Edition, Eclipse 2021-03R and SonarLint plugin
  2. Setup SonarLint connection to the SonarQube server
  3. Edit a Java class file in Eclipse and save it.

Expected Result

  • SonarLint will lint the java code.

Actual Result

  • SonaLint failed with error thrown.

Hey there.

Since this is a continuation of

let me suggest you continue the conversation there instead of raising a new thread. I’ll close this thread and remove the “solution” mark from the other thread so the topic doesn’t automatically close.