This issue was brought up here:
http://mail.openjdk.java.net/pipermail/nio-dev/2012-November/001969.html
Basically FileChannel.map does not check if the MapMode is null causing it use a default and throwing an assertion (if asserts are enabled).
http://mail.openjdk.java.net/pipermail/nio-dev/2012-November/001969.html
Basically FileChannel.map does not check if the MapMode is null causing it use a default and throwing an assertion (if asserts are enabled).