RFR [11]: 8207235: ManagementFactory.getPlatformMXBeans(BufferPoolMXBean.class) throws NPE

Claes Redestad claes.redestad at oracle.com
Fri Jul 13 12:54:23 UTC 2018


the JavaNioAccess shared secret is being created by java.nio.Bits, but 
since it's non-public SharedSecrets has been using an indirection to 
ensure it gets loaded when needed. JDK-8201494 unintentionally broke 
this indirect dependency.

One solution is to move the creation of the shared secret class to a 
public class in java.nio, allowing for a direct dependency.

Webrev: http://cr.openjdk.java.net/~redestad/8207235/open.00/
Bug: https://bugs.openjdk.java.net/browse/JDK-8207235



More information about the nio-dev mailing list