From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3247 invoked by alias); 26 May 2002 14:26:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 3209 invoked by uid 71); 26 May 2002 14:26:00 -0000 Resent-Date: 26 May 2002 14:26:00 -0000 Resent-Message-ID: <20020526142600.3208.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, java-prs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, oskar@osk.mine.nu Received:(qmail 2095 invoked by uid 61); 26 May 2002 14:17:17 -0000 Message-Id:<20020526141717.2094.qmail@sources.redhat.com> Date: Sun, 26 May 2002 07:47:00 -0000 From: oskar@osk.mine.nu Reply-To: oskar@osk.mine.nu To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: java/6818: "Can't find default package" when package has no classes X-SW-Source: 2002-05/txt/msg00825.txt.bz2 List-Id: >Number: 6818 >Category: java >Synopsis: "Can't find default package" when package has no classes >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sun May 26 07:26:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: oskar@osk.mine.nu >Release: 3.1 >Organization: >Environment: Linux/x86 >Description: gcj reports "Can't find default package `xxx'" when a package with no class files is imported. (I don't know what the point is in important a class-less package, but javac in Sun JDK 1.4 and jikes don't report this error.) >How-To-Repeat: Run mkdir -p foo/bar cat >foo/bar/Test.java <<_END_ package foo.bar; import foo.*; public class Test { } _END_ gcj -C foo/bar/Test.java The output is: foo/bar/Test.java:2: Can't find default package `foo'. Check the CLASSPATH environment variable and the access to the archives. 1 error >Fix: >Release-Note: >Audit-Trail: >Unformatted: