7028468: (fs) FileSystems.getDefault() fails when kernel micro version contains/ends non-numeric characters

Rémi Forax forax at univ-mlv.fr
Fri Mar 18 05:53:23 PDT 2011

On 03/18/2011 12:16 PM, 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.

Looks good.


More information about the nio-dev mailing list