mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 09:04:41 +02:00
8173382: Add -source 11 and -target 11 to javac
8193291: Add SourceVersion.RELEASE_11 Reviewed-by: jjg, erikj, psandoz
This commit is contained in:
parent
6a80c5906f
commit
691eb78732
15 changed files with 118 additions and 56 deletions
|
@ -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" +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue