8028544: Add SourceVersion.RELEASE_10

8028546: Add -source 10 and -target 10 to javac

Reviewed-by: jjg, smarks
This commit is contained in:
Joe Darcy 2017-01-27 16:22:08 -08:00
parent a4ed1aefb8
commit 874b8cdc74
19 changed files with 100 additions and 75 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -23,7 +23,7 @@
/*
* @test
* @bug 7025809 8028543 6415644
* @bug 7025809 8028543 6415644 8028544
* @summary Test latest, latestSupported, underscore as keyword, etc.
* @author Joseph D. Darcy
* @modules java.compiler
@ -44,7 +44,7 @@ public class TestSourceVersion {
}
private static void testLatestSupported() {
if (SourceVersion.latest() != RELEASE_9 ||
if (SourceVersion.latest() != RELEASE_10 ||
SourceVersion.latestSupported() != RELEASE_9)
throw new RuntimeException("Unexpected release value(s) found:\n" +
"latest:\t" + SourceVersion.latest() + "\n" +