From b7721297e932179f5e6537d4fbab326c1fdd6c46 Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Thu, 27 Jun 2019 11:18:24 +0200 Subject: [PATCH] SONAR-12002 Fail startup of SonarQube server if JRE < 11 --- .../main/java/org/sonar/scanner/bootstrap/GlobalContainer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/GlobalContainer.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/GlobalContainer.java index 0076875aa49..87f69aad2a8 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/GlobalContainer.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/GlobalContainer.java @@ -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"); } } -- 2.39.5