< prev index next >

test/jdk/jdk/jfr/jmx/security/TestNoMonitorPermission.java

Print this page
rev 51054 : imported patch 9000013-aixDisableJFR-requires.patch

*** 29,42 **** import jdk.management.jfr.FlightRecorderMXBean; import jdk.test.lib.jfr.CommonHelper; import jdk.test.lib.jfr.VoidFunction; ! /* * @test * @key jfr * @summary Verify we get SecurityExceptions when missing management permission "monitor". * @library /test/lib /test/jdk * @run main/othervm/secure=java.lang.SecurityManager/java.security.policy=nomonitor.policy jdk.jfr.jmx.security.TestNoMonitorPermission */ public class TestNoMonitorPermission { --- 29,43 ---- import jdk.management.jfr.FlightRecorderMXBean; import jdk.test.lib.jfr.CommonHelper; import jdk.test.lib.jfr.VoidFunction; ! /** * @test * @key jfr * @summary Verify we get SecurityExceptions when missing management permission "monitor". + * @requires vm.hasJFR * @library /test/lib /test/jdk * @run main/othervm/secure=java.lang.SecurityManager/java.security.policy=nomonitor.policy jdk.jfr.jmx.security.TestNoMonitorPermission */ public class TestNoMonitorPermission {
< prev index next >