Update GraalVM detection in Platform Detector (#1286)

How the GraalVM reports itself in the vendor and vm flags has evolved in
newer version.  Report GraalVM if it is seen in either string.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
pull/1287/head
Danno Ferrin 4 years ago committed by GitHub
parent 7b9ade23cd
commit 223d6457f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      util/src/main/java/org/hyperledger/besu/util/platform/PlatformDetector.java

@ -169,7 +169,7 @@ public class PlatformDetector {
} }
static String normalizeVM(final String javaVendor, final String javaVmName) { static String normalizeVM(final String javaVendor, final String javaVmName) {
if (javaVmName.contains("graalvm")) { if (javaVmName.contains("graalvm") || javaVendor.contains("graalvm")) {
return "graalvm"; return "graalvm";
} }
if (javaVendor.contains("oracle")) { if (javaVendor.contains("oracle")) {

Loading…
Cancel
Save