7028468: (fs) FileSystems.getDefault() fails when kernel micro version contains/ends non-numeric characters
Chris Hegarty
chris.hegarty at oracle.com
Fri Mar 18 06:20:56 PDT 2011
I think the following imports are no longer necessary, otherwise looks fine.
31 import java.security.AccessController;
32 import sun.security.action.GetPropertyAction
-Chris.
On 03/18/11 11:16 AM, Alan Bateman wrote:
>
> Someone trying out jdk7 on a Linux kernel reporting itself as
> "2.6.38lab" exposed a bug in the version parsing code. Easy to fix, but
> looking at it now, the only reason this code looks the version is to
> know whether the inotify based WatchService can be returned by the
> newWatchService method. My guess is that it should be rare for folks
> still running distributions with kernels older than 2.6.13 (kernel was
> released March 2006). If folks agree then the simplest solution is just
> to remove the version check:
> http://cr.openjdk.java.net/~alanb/7028468/webrev/
>
> Thanks,
> Alan.
More information about the nio-dev
mailing list