Dealing with case insensitivity

Per Bothner per@bothner.com
Wed Oct 10 00:32:00 GMT 2001


Bryce McKinlay wrote:

> At some point the compiler tries to load "gnu.java" (because "gnu" is 
> a package name?), which succeeds unexpectedly, and the compiler thinks 
> there are two different files defining the same class. 

Hm.  Would you get the same problem if the "Gnu" class were renamed "gnu"?
I.e is this a case insensitivity problem, or a problem because we have both
a directory (package ) named gnu/java, which also looking for Gnu.java?
Both seem like they might be in retrospet mistakes, but renaming the
Gnu to to something might be an easy work-around.
    --Per




More information about the Java mailing list