On Fri, Sep 24, 2010 at 1:49 AM, Tim Ellison <[email protected]> wrote:
>
> System.out.println(new File("σ.txt").hashCode());
> System.out.println(new File("ς.txt").hashCode());
>
> prints out
>
> 889962580
> 890776533
>
> on both Harmony and the RI.
>
>
but perhaps this is just a bug in the RI?
according to the link:
http://download.oracle.com/javase/6/docs/api/java/io/File.html#hashCode%28%29
<http://download.oracle.com/javase/6/docs/api/java/io/File.html#hashCode%28%29>Because
equality of abstract pathnames is inherently system-dependent, so is the
computation of their hash codes.
Is it a problem that "windows equals" is inconsistent with hashCode here? I
admit these are corner cases.
--
Robert Muir
[email protected]