commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andre Schild" <>
Subject [VFS] Problem with usage of HashMap
Date Tue, 23 Dec 2003 16:33:29 GMT
In the class AbstractFileSystem then list of files is stored in a HashMap. 

Unfortunaly this HashMap causes problems, depending on the filenames 
present in the directory. 

We encountered the problem in a directory who contains the filenames "i0.png" and "gn.png".
When we make the two Strings and look at the HashCode, then we see that they 
 return the same value.

String f1= new String("i0.png");
String f2= new String("gn.png");

Those filenames are a small subset of the country flags of the project.

I have reported it as a defect in scarab.


aarboard ag
internet - networks - screen&print design - multimedia
Egliweg 10 - Postfach 214 - CH-2560 Nidau (Switzerland)
Phone +41 32 332 9714 - Fax +41 32 332 9715 -

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message