From f83311449211cac6f646557b84b1a711203eb45b Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Mon, 7 Nov 2016 15:05:18 -0800 Subject: [PATCH] Fix g1gc bootstrap check to only try parsing java version for java 8 --- .../main/java/org/elasticsearch/bootstrap/BootstrapCheck.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/elasticsearch/bootstrap/BootstrapCheck.java b/core/src/main/java/org/elasticsearch/bootstrap/BootstrapCheck.java index a466eb2e7c6..0676eff5b12 100644 --- a/core/src/main/java/org/elasticsearch/bootstrap/BootstrapCheck.java +++ b/core/src/main/java/org/elasticsearch/bootstrap/BootstrapCheck.java @@ -559,7 +559,7 @@ final class BootstrapCheck { @Override public boolean check() { - if ("Oracle Corporation".equals(jvmVendor()) && isG1GCEnabled()) { + if ("Oracle Corporation".equals(jvmVendor()) && Constants.JRE_IS_MINIMUM_JAVA9 == false && isG1GCEnabled()) { final String jvmVersion = jvmVersion(); final Pattern pattern = Pattern.compile("(\\d+)\\.(\\d+)-b\\d+"); final Matcher matcher = pattern.matcher(jvmVersion);