NoClass.java revision 553
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis/*
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis * Copyright (c) 1998, 2001, Oracle and/or its affiliates. All rights reserved.
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis *
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis * This code is free software; you can redistribute it and/or modify it
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis * under the terms of the GNU General Public License version 2 only, as
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis * published by the Free Software Foundation.
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis *
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis * This code is distributed in the hope that it will be useful, but WITHOUT
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis * version 2 for more details (a copy is included in the LICENSE file that
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis * accompanied this code).
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis *
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis * You should have received a copy of the GNU General Public License version
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis * 2 along with this work; if not, write to the Free Software Foundation,
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis *
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis * or visit www.oracle.com if you need additional information or have any
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis * questions.
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis */
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis/*
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis * @test
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis * @bug 4041851
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis * @summary The gramamr allows java files without class or interface
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis * declarations; when the compiler encountered this, it failed
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis * to check the validity of import declarations.
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis * @author turnidge
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis *
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis * @compile/fail NoClass.java
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis */
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanisimport nonexistent.pack.cls;
2eefc362ae6a0a94b84ee5bc9e7844ef45c3642cAlex Valavanis