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