mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 00:54:38 +02:00
8028543: Add SourceVersion.RELEASE_9
Reviewed-by: jjg
This commit is contained in:
parent
8d4ba575b6
commit
6fc7157058
3 changed files with 20 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 2013, 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
|
||||
* @bug 7025809 8028543
|
||||
* @summary Test latest and latestSupported
|
||||
* @author Joseph D. Darcy
|
||||
*/
|
||||
|
@ -36,8 +36,8 @@ import static javax.lang.model.SourceVersion.*;
|
|||
*/
|
||||
public class TestSourceVersion {
|
||||
public static void main(String... args) {
|
||||
if (SourceVersion.latest() != RELEASE_8 ||
|
||||
SourceVersion.latestSupported() != RELEASE_8)
|
||||
if (SourceVersion.latest() != RELEASE_9 ||
|
||||
SourceVersion.latestSupported() != RELEASE_9)
|
||||
throw new RuntimeException("Unexpected release value(s) found:\n" +
|
||||
"latest:\t" + SourceVersion.latest() + "\n" +
|
||||
"latestSupported:\t" + SourceVersion.latestSupported());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue