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

Alan Bateman Alan.Bateman at oracle.com
Fri Jul 13 13:04:40 UTC 2018


On 13/07/2018 13:54, Claes Redestad wrote:
> Hi,
>
> 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
Looks good, thanks for jumping on this one.

-Alan


More information about the nio-dev mailing list