Fix g1gc bootstrap check to only try parsing java version for java 8

This commit is contained in:
Ryan Ernst 2016-11-07 15:05:18 -08:00
parent 7c31e8cc58
commit f833114492
1 changed files with 1 additions and 1 deletions

View File

@ -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);