From 0beb3f0c35dff5df60aa523a33c352f661e27abc Mon Sep 17 00:00:00 2001 From: Mesbah-Alam Date: Fri, 9 Jul 2021 10:05:51 -0400 Subject: [PATCH] Remove check that Java version output must start with "java version" Signed-off-by: Mesbah-Alam --- .../net/adoptopenjdk/stf/environment/JavaVersion.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/stf.core/src/stf.core/net/adoptopenjdk/stf/environment/JavaVersion.java b/stf.core/src/stf.core/net/adoptopenjdk/stf/environment/JavaVersion.java index 7eca9c3..4760530 100644 --- a/stf.core/src/stf.core/net/adoptopenjdk/stf/environment/JavaVersion.java +++ b/stf.core/src/stf.core/net/adoptopenjdk/stf/environment/JavaVersion.java @@ -96,11 +96,6 @@ private JavaVersion(boolean isPrimaryJvm, String javaHome) throws StfException { if (javaVersionOutput.startsWith("openjdk version")) { javaVersionOutput = javaVersionOutput.replace("openjdk", "java"); } - - // Sanity check. Verify that the output appears correct - if (!javaVersionOutput.startsWith("java version")) { - throw new StfException("'Java -version' output does not start with 'java version'. Actual output was: " + javaVersionOutput); - } } public static JavaVersion getInstance(StfEnvironmentCore environmentCore) throws StfException {