--- old/test/lib/jdk/test/lib/OSVersion.java 2020-05-01 02:28:23.450879590 -0700 +++ new/test/lib/jdk/test/lib/OSVersion.java 2020-05-01 02:28:23.070872280 -0700 @@ -46,9 +46,6 @@ private final int[] versionTokens; public static OSVersion current() { - if (Platform.isSolaris()) { - return new OSVersion(getSolarisVersion()); - } return new OSVersion(Platform.getOsVersion()); } @@ -64,26 +61,6 @@ .toArray(); } - private static String getSolarisVersion() { - try { - return Utils.distro(); - } catch (Throwable e) { - System.out.println("First attempt failed with: " + e.getMessage()); - } - - // Try to get Solaris version from /etc/release - try (BufferedReader in = new BufferedReader(AccessController.doPrivileged( - (PrivilegedExceptionAction) () -> new FileReader("/etc/release")))) { - return in.readLine().trim().split(" ")[2]; - } catch (PrivilegedActionException e) { - System.out.println("Second attempt failed with: " + e.getException().getMessage()); - } catch (Exception e) { - System.out.println("Second attempt failed with: " + e.getMessage()); - } - - throw new RuntimeException("Unable to get Solaris version"); - } - @Override public int compareTo(OSVersion o) { return Arrays.compare(this.versionTokens, o.versionTokens);