Test.java revision 553
553N/A * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved. 11N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 11N/A * This code is free software; you can redistribute it and/or modify it 11N/A * under the terms of the GNU General Public License version 2 only, as 553N/A * published by the Free Software Foundation. Oracle designates this 11N/A * particular file as subject to the "Classpath" exception as provided 553N/A * by Oracle in the LICENSE file that accompanied this code. 11N/A * This code is distributed in the hope that it will be useful, but WITHOUT 11N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 11N/A * version 2 for more details (a copy is included in the LICENSE file that 11N/A * accompanied this code). 11N/A * You should have received a copy of the GNU General Public License version 11N/A * 2 along with this work; if not, write to the Free Software Foundation, 11N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 553N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 553N/A * or visit www.oracle.com if you need additional information or have any 11N/A * @bug 6668794 6668796 11N/A * @summary javac puts localized text in raw diagnostics 11N/A * bad diagnostic "bad class file" given for source files 11N/A // compile q.A then move it to p.A 11N/A // compile B against p.A 11N/A throw new Error(
"no diagnostics generated");
220N/A "(compiler.misc.bad.class.file.header: A.class, " +
220N/A "(compiler.misc.class.file.wrong.class: q.A))";
11N/A "-XDrawDiagnostics",