Dealing with case insensitivity
Tom Tromey
tromey@redhat.com
Wed Oct 10 10:06:00 GMT 2001
>>>>> "Bryce" == Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:
Bryce> I wonder if anyone has any ideas on what is the best way to
Bryce> change jc1 so that it can tolerate case insensitive file
Bryce> systems.
I don't have a detailed solution. I haven't really looked into the
problem deeply. However I think we must take care in jc1 to compare
file names using the appropriate comparison function for the host, but
always compare class names with strcmp.
Bryce> One solution might be to stat() all filenames before we open
Bryce> them, and keep the file tree nodes in a hashtable indexed by
Bryce> their inode number. This way we can be sure that the file
Bryce> nodes are unique. Any problems with that approach? Anyone see
Bryce> better way?
inodes aren't unique across filesystems. Also I thought DOS-based
filesystems didn't have inodes.
Tom
More information about the Java
mailing list