]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-12002 Fail startup of SonarQube server if JRE < 11
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Thu, 27 Jun 2019 09:18:24 +0000 (11:18 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 28 Jun 2019 06:45:57 +0000 (08:45 +0200)
sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/GlobalContainer.java

index 0076875aa49fbf56f82775d34a8eaaa0f0bfe473..87f69aad2a849ce9182ea0c934724ad5c12b612e 100644 (file)
@@ -83,7 +83,7 @@ public class GlobalContainer extends ComponentContainer {
     try {
       String.class.getMethod("isBlank");
     } catch (NoSuchMethodException e) {
-      throw new IllegalStateException("SonarScanner requires Java 11+ to run");
+      LOG.warn("SonarScanner will require Java 11+ to run starting in SonarQube 8.x");
     }
   }