This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/6818] "Can't find default package" when package has no classes


------- Additional Comments From rmathew at gcc dot gnu dot org  2004-10-27 13:30 -------
This is not a bug. Using the submitter's test case against
JDK 1.4.2_03 from Sun on Linux:
---------------------------------- 8< ----------------------------------
~/src/tmp/r1 > java -version
java version "1.4.2_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)

~/src/tmp/r1 > javac foo/bar/Test.java
foo/bar/Test.java:1: package foo does not exist
import foo.*;
^
1 error

~/src/tmp/r1 > touch foo/Junk.class
~/src/tmp/r1 > javac foo/bar/Test.java

~/src/tmp/r1 > rm foo/Junk.class
~/src/tmp/r1 > javac foo/bar/Test.java
foo/bar/Test.java:1: package foo does not exist
import foo.*;
^
1 error
---------------------------------- 8< ----------------------------------

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6818


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]