[Bug java/18175] Can't find default package with redundant package import

rmathew at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Oct 27 14:08:00 GMT 2004


------- Additional Comments From rmathew at gcc dot gnu dot org  2004-10-27 14:08 -------
Weird! I don't see this error at all (i686-pc-linux-gnu) with
the current mainline:
-------------------------- 8< --------------------------
~/src/tmp/r1 > cat com/example/Test.java
package com.example;
import com.example.*;
class Test { }

~/src/tmp/r1 > $MYGCJ -classpath . -C com/example/Test.java

~/src/tmp/r1 > $MYGCJ --version
gcj (GCC) 4.0.0 20041027 (experimental)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-------------------------- 8< --------------------------

MYGCJ is a variable defined in such a way that I can use
the GCJ built from CVS without having to actually install
it:

~/src/tmp/r1 > echo $MYGCJ
/home/ranmath/src/gcc/build/gcc/gcj -B/home/ranmath/src/gcc/build/gcc/ -B/home/r
anmath/src/gcc/build/i686-pc-linux-gnu/libjava/ -I/home/ranmath/src/gcc/build/i6
86-pc-linux-gnu/libjava/libgcj-4.0.0.jar -L/home/ranmath/src/gcc/build/i686-pc-l
inux-gnu/libjava/.libs

But I don't think that should affect the outcome.

-- 


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



More information about the Gcc-bugs mailing list