Fix g1gc bootstrap check to only try parsing java version for java 8
This commit is contained in:
parent
7c31e8cc58
commit
f833114492
|
@ -559,7 +559,7 @@ final class BootstrapCheck {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean check() {
|
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 String jvmVersion = jvmVersion();
|
||||||
final Pattern pattern = Pattern.compile("(\\d+)\\.(\\d+)-b\\d+");
|
final Pattern pattern = Pattern.compile("(\\d+)\\.(\\d+)-b\\d+");
|
||||||
final Matcher matcher = pattern.matcher(jvmVersion);
|
final Matcher matcher = pattern.matcher(jvmVersion);
|
||||||
|
|
Loading…
Reference in New Issue