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