You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the fix for "9-Debian" Java version does not work for "11-ea" like string:
Caused by: java.lang.NumberFormatException: For input string: "11-ea"
at java.lang.NumberFormatException.forInputString (NumberFormatException.java:65)
at java.lang.Integer.parseInt (Integer.java:652)
at java.lang.Integer.parseInt (Integer.java:770)
at com.google.gson.util.VersionUtils.determineMajorJavaVersion (VersionUtils.java:28)
at com.google.gson.util.VersionUtils.<clinit> (VersionUtils.java:24)
at com.google.gson.internal.reflect.ReflectionAccessor.<clinit> (ReflectionAccessor.java:36)
at com.google.gson.internal.ConstructorConstructor.<init> (ConstructorConstructor.java:51)
at com.google.gson.Gson.<init> (Gson.java:205)
at com.google.gson.Gson.<init> (Gson.java:185)
at org.sonar.scanner.bootstrap.ScannerPluginInstaller.listInstalledPlugins (ScannerPluginInstaller.java:108)
at org.sonar.scanner.bootstrap.ScannerPluginInstaller.loadPlugins (ScannerPluginInstaller.java:78)
at org.sonar.scanner.bootstrap.ScannerPluginInstaller.installRemotes (ScannerPluginInstaller.java:62)
at org.sonar.scanner.bootstrap.ScannerPluginRepository.start (ScannerPluginRepository.java:59
It seems that the fix for "9-Debian" Java version does not work for "11-ea" like string:
It seems to be called from here via
Gson().fromJson
:https://github.com/SonarSource/sonarqube/blob/138171d657c57fe015c4dcc4be996973f87f5365/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/ScannerPluginInstaller.java#L103
Thanks
[1] - Fix for "9-Debian" Java version string: https://github.com/google/gson/pull/1311/files
[2] - Report of "9-Debian" Java version issue:
The text was updated successfully, but these errors were encountered: