test/tools/javac/options/T6900037.java

Mon, 28 Feb 2011 12:19:18 -0800

author
jjg
date
Mon, 28 Feb 2011 12:19:18 -0800
changeset 897
9029f694e5df
parent 757
test/tools/javac/T6900037.java@c44234f680da
child 962
0ff2bbd38f10
permissions
-rw-r--r--

7022337: repeated warnings about bootclasspath not set
Reviewed-by: mcimadamore

jjg@757 1 /*
jjg@757 2 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
jjg@757 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jjg@757 4 *
jjg@757 5 * This code is free software; you can redistribute it and/or modify it
jjg@757 6 * under the terms of the GNU General Public License version 2 only, as
jjg@757 7 * published by the Free Software Foundation.
jjg@757 8 *
jjg@757 9 * This code is distributed in the hope that it will be useful, but WITHOUT
jjg@757 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jjg@757 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
jjg@757 12 * version 2 for more details (a copy is included in the LICENSE file that
jjg@757 13 * accompanied this code).
jjg@757 14 *
jjg@757 15 * You should have received a copy of the GNU General Public License version
jjg@757 16 * 2 along with this work; if not, write to the Free Software Foundation,
jjg@757 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jjg@757 18 *
jjg@757 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
jjg@757 20 * or visit www.oracle.com if you need additional information or have any
jjg@757 21 * questions.
jjg@757 22 */
jjg@757 23
jjg@757 24 /*
jjg@757 25 * @test
jjg@757 26 * @bug 6900037
jjg@757 27 * @summary javac should warn if earlier -source is used and bootclasspath not set
jjg@757 28 * @compile T6900037.java
jjg@757 29 * @compile -source 1.6 T6900037.java
jjg@757 30 * @compile/fail/ref=T6900037.out -XDrawDiagnostics -Werror -source 1.6 T6900037.java
jjg@757 31 * @compile -Werror -source 1.6 -Xlint:-options T6900037.java
jjg@757 32 */
jjg@757 33
jjg@757 34 class T6900037 { }

mercurial