8173382: Add -source 11 and -target 11 to javac

8193291: Add SourceVersion.RELEASE_11

Reviewed-by: jjg, erikj, psandoz
This commit is contained in:
Joe Darcy 2017-12-18 18:51:40 -08:00
parent 6a80c5906f
commit 691eb78732
15 changed files with 118 additions and 56 deletions

View file

@ -23,7 +23,7 @@
/*
* @test
* @bug 7025809 8028543 6415644 8028544 8029942
* @bug 7025809 8028543 6415644 8028544 8029942 8193291
* @summary Test latest, latestSupported, underscore as keyword, etc.
* @author Joseph D. Darcy
* @modules java.compiler
@ -45,7 +45,7 @@ public class TestSourceVersion {
}
private static void testLatestSupported() {
if (SourceVersion.latest() != RELEASE_10 ||
if (SourceVersion.latest() != RELEASE_11 ||
SourceVersion.latestSupported() != RELEASE_10)
throw new RuntimeException("Unexpected release value(s) found:\n" +
"latest:\t" + SourceVersion.latest() + "\n" +