test/langtools/tools/javac/6330997/T6330997.java
changeset 48081 89829dd3cc54
parent 47216 71c04702a3d5
child 48355 4944950606ef
equal deleted inserted replaced
48080:18a4438eb690 48081:89829dd3cc54
     1 /*
     1 /*
     2  * Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /**
    24 /**
    25  * @test
    25  * @test
    26  * @bug     6330997 7025789 8000961
    26  * @bug     6330997 7025789 8000961 8188870
    27  * @summary javac should accept class files with major version of the next release
    27  * @summary javac should accept class files with major version of the next release
    28  * @author  Wei Tao
    28  * @author  Wei Tao
    29  * @modules jdk.compiler/com.sun.tools.javac.api
    29  * @modules jdk.compiler/com.sun.tools.javac.api
    30  *          jdk.compiler/com.sun.tools.javac.code
    30  *          jdk.compiler/com.sun.tools.javac.code
    31  *          jdk.compiler/com.sun.tools.javac.comp
    31  *          jdk.compiler/com.sun.tools.javac.comp
    32  *          jdk.compiler/com.sun.tools.javac.main
    32  *          jdk.compiler/com.sun.tools.javac.main
    33  *          jdk.compiler/com.sun.tools.javac.util
    33  *          jdk.compiler/com.sun.tools.javac.util
    34  * @clean T1 T2
    34  * @clean T1 T2
    35  * @compile -source 9 -target 9 T1.java
    35  * @compile -source 10 -target 10 T1.java
    36  * @compile -source 9 -target 9 T2.java
    36  * @compile -source 10 -target 10 T2.java
    37  * @run main/othervm T6330997
    37  * @run main/othervm T6330997
    38  */
    38  */
    39 
    39 
    40 import java.nio.*;
    40 import java.nio.*;
    41 import java.io.*;
    41 import java.io.*;