< prev index next >

test/langtools/tools/javac/versions/Versions.java

Print this page
rev 48342 : imported patch JDK-8173382-release-version
rev 48343 : imported patch JDK-8173382-classfile-version

@@ -21,11 +21,11 @@
  * questions.
  */
 
 /*
  * @test
- * @bug 4981566 5028634 5094412 6304984 7025786 7025789 8001112 8028545 8000961 8030610 8028546 8188870 8173382
+ * @bug 4981566 5028634 5094412 6304984 7025786 7025789 8001112 8028545 8000961 8030610 8028546 8188870 8173382 8173382
  * @summary Check interpretation of -target and -source options
  * @modules java.compiler
  *          jdk.compiler
  * @run main Versions
  */

@@ -62,17 +62,17 @@
     void run() {
 
         String TC = "";
         System.out.println("Version.java: Starting");
 
-        check("54.0");
-        check("54.0", "-source 1.6");
-        check("54.0", "-source 1.7");
-        check("54.0", "-source 1.8");
-        check("54.0", "-source 1.9");
-        check("54.0", "-source 1.10");
-        check("54.0", "-source 11");
+        check("55.0");
+        check("55.0", "-source 1.6");
+        check("55.0", "-source 1.7");
+        check("55.0", "-source 1.8");
+        check("55.0", "-source 1.9");
+        check("55.0", "-source 1.10");
+        check("55.0", "-source 11");
 
         check_source_target(true, "50.0", "6", "6");
         check_source_target(true, "51.0", "6", "7");
         check_source_target(true, "51.0", "7", "7");
         check_source_target(true, "52.0", "6", "8");

@@ -85,11 +85,16 @@
         check_source_target(true, "54.0", "6", "10");
         check_source_target(true, "54.0", "7", "10");
         check_source_target(true, "54.0", "8", "10");
         check_source_target(true, "54.0", "9", "10");
         check_source_target(true, "54.0", "10", "10");
-        check_source_target(false, "54.0", "11", "11");
+        check_source_target(false, "55.0", "6", "11");
+        check_source_target(false, "55.0", "7", "11");
+        check_source_target(false, "55.0", "8", "11");
+        check_source_target(false, "55.0", "9", "11");
+        check_source_target(false, "55.0", "10", "11");
+        check_source_target(false, "55.0", "11", "11");
 
         checksrc16("-source 1.6");
         checksrc16("-source 6");
         checksrc16("-source 1.6", "-target 1.6");
         checksrc16("-source 6", "-target 6");
< prev index next >