提交 3d7f4a1b 编写于 作者: J jbachorik

8047073: Some javax/management/ fails with JFR

Reviewed-by: egahlin, dfuchs
上级 480714e5
...@@ -35,7 +35,7 @@ import javax.management.ObjectName; ...@@ -35,7 +35,7 @@ import javax.management.ObjectName;
* @author Jaroslav Bachorik * @author Jaroslav Bachorik
* @run clean MBeanFallbackTest * @run clean MBeanFallbackTest
* @run build MBeanFallbackTest * @run build MBeanFallbackTest
* @run main MBeanFallbackTest * @run main/othervm -Djdk.jmx.mbeans.allowNonPublic=true MBeanFallbackTest
*/ */
public class MBeanFallbackTest { public class MBeanFallbackTest {
private static interface PrivateMBean { private static interface PrivateMBean {
...@@ -51,7 +51,6 @@ public class MBeanFallbackTest { ...@@ -51,7 +51,6 @@ public class MBeanFallbackTest {
private static int failures = 0; private static int failures = 0;
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
System.setProperty("jdk.jmx.mbeans.allowNonPublic", "true");
testPrivate(PrivateMBean.class, new Private()); testPrivate(PrivateMBean.class, new Private());
if (failures == 0) if (failures == 0)
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* @author Eamonn McManus, Daniel Fuchs * @author Eamonn McManus, Daniel Fuchs
* @run clean SerialCompatTest * @run clean SerialCompatTest
* @run build SerialCompatTest * @run build SerialCompatTest
* @run main/othervm SerialCompatTest * @run main/othervm -Djdk.jmx.mbeans.allowNonPublic=true -Djmx.serial.form=1.0 SerialCompatTest
*/ */
import java.io.*; import java.io.*;
...@@ -223,8 +223,6 @@ public class SerialCompatTest { ...@@ -223,8 +223,6 @@ public class SerialCompatTest {
} }
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
System.setProperty("jmx.serial.form", "1.0");
/* Check that we really are in jmx.serial.form=1.0 mode. /* Check that we really are in jmx.serial.form=1.0 mode.
The property is frozen the first time the ObjectName class The property is frozen the first time the ObjectName class
is referenced so checking that it is set to the correct is referenced so checking that it is set to the correct
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
* @author Jaroslav Bachorik * @author Jaroslav Bachorik
* @run clean MXBeanFallbackTest * @run clean MXBeanFallbackTest
* @run build MXBeanFallbackTest * @run build MXBeanFallbackTest
* @run main MXBeanFallbackTest * @run main/othervm -Djdk.jmx.mbeans.allowNonPublic=true MXBeanFallbackTest
*/ */
import javax.management.MBeanServer; import javax.management.MBeanServer;
...@@ -40,7 +40,6 @@ import javax.management.ObjectName; ...@@ -40,7 +40,6 @@ import javax.management.ObjectName;
public class MXBeanFallbackTest { public class MXBeanFallbackTest {
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
System.setProperty("jdk.jmx.mbeans.allowNonPublic", "true");
testPrivateMXBean("Private", new Private()); testPrivateMXBean("Private", new Private());
if (failures == 0) if (failures == 0)
......
...@@ -36,7 +36,7 @@ import javax.management.ObjectName; ...@@ -36,7 +36,7 @@ import javax.management.ObjectName;
* @author Jaroslav Bachorik * @author Jaroslav Bachorik
* @run clean JMXProxyFallbackTest * @run clean JMXProxyFallbackTest
* @run build JMXProxyFallbackTest * @run build JMXProxyFallbackTest
* @run main JMXProxyFallbackTest * @run main/othervm -Djdk.jmx.mbeans.allowNonPublic=true JMXProxyFallbackTest
*/ */
public class JMXProxyFallbackTest { public class JMXProxyFallbackTest {
private static interface PrivateMBean { private static interface PrivateMBean {
...@@ -56,7 +56,6 @@ public class JMXProxyFallbackTest { ...@@ -56,7 +56,6 @@ public class JMXProxyFallbackTest {
private static int failures = 0; private static int failures = 0;
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
System.setProperty("jdk.jmx.mbeans.allowNonPublic", "true");
testPrivate(PrivateMBean.class); testPrivate(PrivateMBean.class);
testPrivate(PrivateMXBean.class); testPrivate(PrivateMXBean.class);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册