6979526: (file) java/nio/file/FileStore/Basic.java fails if the same file system is mounted more than once

Rémi Forax forax at univ-mlv.fr
Sat Oct 2 03:22:37 PDT 2010


Le 02/10/2010 11:21, Alan Bateman a écrit :
>
> I need a reviewer for a small change to the implementation of 
> FileStore on Solaris/Linux. Currently the hashCode/equals methods are 
> based on the device ID but that isn't sufficient when the same file 
> system is mounted more than once. This causes one of our existing 
> tests to fail in some environments. The fix changes the implementation 
> of hashCode/equals to use both the device ID and the mount point. The 
> webrev is here:
>  http://cr.openjdk.java.net/~alanb/6979526/webrev/
>
> Thanks,
> Alan.

Removing some codes is always a win !

Looks good.

Rémi


More information about the nio-dev mailing list