Package/Class Confusion on GCJ/Windows
Ranjit Mathew
rmathew@hotmail.com
Wed Sep 11 03:47:00 GMT 2002
Tom Tromey wrote:
>>>>>>"Ranjit" == Ranjit Mathew <rmathew@hotmail.com> writes:
>>>>>
>
> Ranjit> If there's a class and a package with the same name, GCJ
> Ranjit> complains about "reading class FooBar for the second time"
> Ranjit> where FooBar is the name in question.
>
> Ranjit> Is it coming up becuase one of my "kludges" (inspired by posts
> Ranjit> made by Robert Collins and David Billinghurst) was to convert
> Ranjit> all file names to lowercase before proceeding?
>
> I don't know. I hadn't heard of doing this sort of renaming. I
> recommend against it; if leaving the files as-is shows bugs in jc1,
> then let's fix those bugs.
If I don't do the convert-to-lowercase bit, I instead get
errors like this:
-------------------------- 8< -----------------------------
c:\gcc3.2\gcc-3.2\libjava/java/awt/image.java:48: Class `java.awt.Image'
already defined in c:\gcc3.2\gcc-3.2\libjava/java/awt/Image.java:48.
public abstract class Image
^
c:\gcc3.2\gcc-3.2\libjava/java/awt/image.java:99: confused by earlier
errors, bailing out
-------------------------- 8< -----------------------------
(Notice that it has taken the source file name in lower-
case in the first instance, but with the proper case in the
second instance, within the same error message.)
Ranjit.
More information about the Java
mailing list