Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.11.0
-
None
-
Oracle Java 8
Description
I don't know if it is a JVM bug or normal behavior but a ProtectionDomain with no permission is associated with completionHandler thread by sun.misc.InnocuousThread class.
As a result if a security manager is set all code in completionHandler has no permission (event if policy grants all permission).
If the behavior of JVM is correct then you should add AccessController.doPrivileged() when entering completionHandler.
You can also check if a SecurityManager is set and run without Nio2 as a quick fix.