8196619: [TESTBUG] restore current version check in runtime/appcds/MultiReleaseJars.java
authorccheung
Thu, 17 May 2018 08:41:01 -0700
changeset 50166 1d683e243d8d
parent 50165 86f038c25410
child 50167 cc705c956798
8196619: [TESTBUG] restore current version check in runtime/appcds/MultiReleaseJars.java Reviewed-by: dholmes
test/hotspot/jtreg/runtime/appcds/MultiReleaseJars.java
--- a/test/hotspot/jtreg/runtime/appcds/MultiReleaseJars.java	Thu May 17 12:08:32 2018 +0200
+++ b/test/hotspot/jtreg/runtime/appcds/MultiReleaseJars.java	Thu May 17 08:41:01 2018 -0700
@@ -41,7 +41,7 @@
 
 public class MultiReleaseJars {
 
-    static final int MAJOR_VERSION = 10; // Runtime.version().major();
+    static final int MAJOR_VERSION = Runtime.version().major();
     static final String MAJOR_VERSION_STRING = String.valueOf(MAJOR_VERSION);
 
     static String[] getMain() {