< prev index next >
jdk/src/java.management/share/classes/sun/management/spi/PlatformMBeanProvider.java
Print this page
@@ -203,11 +203,11 @@
/**
* Instantiates a new PlatformMBeanProvider.
*
* @throws SecurityException if the subclass (and calling code) does not
- * have {@code RuntimePermission("sun.management.spi.PlatformMBeanProvider", "subclass")}
+ * have {@code RuntimePermission("sun.management.spi.PlatformMBeanProvider.subclass")}
*/
protected PlatformMBeanProvider () {
this(checkSubclassPermission());
}
@@ -224,10 +224,10 @@
public abstract List<PlatformComponent<?>> getPlatformComponentList();
private static Void checkSubclassPermission() {
SecurityManager sm = System.getSecurityManager();
if (sm != null) {
- sm.checkPermission(new RuntimePermission(PlatformMBeanProvider.class.getName(), "subclass"));
+ sm.checkPermission(new RuntimePermission(PlatformMBeanProvider.class.getName()+".subclass"));
}
return null;
}
}
< prev index next >