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

Alan Bateman Alan.Bateman at oracle.com
Fri Mar 18 04:16:04 PDT 2011

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:


More information about the nio-dev mailing list