This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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]

Re: Package/Class Confusion on GCJ/Windows


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.




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