equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2010, 2014, 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. |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 6900037 |
26 * @bug 6900037 |
27 * @summary javac should warn if earlier -source is used and bootclasspath not set |
27 * @summary javac should warn if earlier -source is used and bootclasspath not set |
28 * @compile T6900037.java |
28 * @compile T6900037.java |
29 * @compile -source 1.6 T6900037.java |
29 * @compile -source 1.8 T6900037.java |
30 * @compile/fail/ref=T6900037.out -XDrawDiagnostics -Werror -source 1.6 T6900037.java |
30 * @compile/fail/ref=T6900037.out -XDrawDiagnostics -Werror -source 1.8 T6900037.java |
31 * @compile -Werror -source 1.6 -Xlint:-options T6900037.java |
31 * @compile -Werror -source 1.8 -Xlint:-options T6900037.java |
32 */ |
32 */ |
33 |
33 |
34 class T6900037 { } |
34 class T6900037 { } |