Building from make/java/nio, make/java/sun_nio, make/com/sun/nio, and make/sun/nio with javac -Xlint:all,-deprecation -Werror produces fatal errors. Warnings emitted by javac might represent actual errors.
JDK-8232481NIO libraries do not build with javac -Xlint:all,-deprecation -Werror
JDK-7081796(ch) rawtype warning in sun.nio.ch.InheritedChannel
JDK-7104650rawtype warnings in several net, nio and security source files