RFR: 8283092: JMX subclass permission check redundant with strong encapsulation [v2]

Mandy Chung mchung at openjdk.java.net
Mon Mar 21 18:46:27 UTC 2022


On Fri, 18 Mar 2022 17:49:05 GMT, Kevin Walls <kevinw at openjdk.org> wrote:

>> Removing permission checks which, in the presence of a Security Manager, would check for a RuntimePermission "className.subclass".  This was to prevent subclassing these classes, but is no longer necessary with strong encapsulation from modules.
>
> Kevin Walls has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Test update

src/java.management/share/classes/sun/management/spi/PlatformMBeanProvider.java line 210:

> 208:     }
> 209: 
> 210:     private PlatformMBeanProvider(Void unused) {

This `PlatformMBeanProvider(Void)` constructor is no longer needed.   Same for `AgentProvider(Void)` constructor.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7827


More information about the serviceability-dev mailing list