test/tools/javac/6330997/T6330997.java

changeset 1042
defdd98cb7ce
parent 554
9d9f26857129
child 2525
2eb010b6cb22
equal deleted inserted replaced
1012:fdc22d73b6f3 1042:defdd98cb7ce
1 /* 1 /*
2 * Copyright (c) 2006, 2007, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2006, 2011, 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 26 * @bug 6330997 7025789
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 * @clean T1 T2 29 * @clean T1 T2
30 * @compile -target 7 T1.java 30 * @compile -target 8 T1.java
31 * @compile -target 7 T2.java 31 * @compile -target 8 T2.java
32 * @run main/othervm T6330997 32 * @run main/othervm T6330997
33 */ 33 */
34 34
35 import java.nio.*; 35 import java.nio.*;
36 import java.io.*; 36 import java.io.*;

mercurial