8173383: Update JDK build to use -source and -target 10
authordarcy
Fri, 03 Feb 2017 10:27:46 -0800
changeset 43647 d21da31c6c0a
parent 43646 017aba6e9260
child 43649 add9e8c9b20b
8173383: Update JDK build to use -source and -target 10 Reviewed-by: dholmes
langtools/test/tools/javac/processing/model/TestSourceVersion.java
--- a/langtools/test/tools/javac/processing/model/TestSourceVersion.java	Fri Jan 27 16:22:08 2017 -0800
+++ b/langtools/test/tools/javac/processing/model/TestSourceVersion.java	Fri Feb 03 10:27:46 2017 -0800
@@ -23,7 +23,7 @@
 
 /*
  * @test
- * @bug 7025809 8028543 6415644 8028544
+ * @bug 7025809 8028543 6415644 8028544 8029942
  * @summary Test latest, latestSupported, underscore as keyword, etc.
  * @author  Joseph D. Darcy
  * @modules java.compiler
@@ -45,7 +45,7 @@
 
     private static void testLatestSupported() {
         if (SourceVersion.latest() != RELEASE_10 ||
-            SourceVersion.latestSupported() != RELEASE_9)
+            SourceVersion.latestSupported() != RELEASE_10)
             throw new RuntimeException("Unexpected release value(s) found:\n" +
                                        "latest:\t" + SourceVersion.latest() + "\n" +
                                        "latestSupported:\t" + SourceVersion.latestSupported());