jdk/test/javax/management/Introspector/AnnotationSecurityTest.java
changeset 33315 d2a313368ccb
parent 30376 2ccf2cf7ea48
child 33316 7a1a203436f7
equal deleted inserted replaced
33268:8db7e6cffaf4 33315:d2a313368ccb
    25  * @test AnnotationSecurityTest.java
    25  * @test AnnotationSecurityTest.java
    26  * @bug 6366543 6370080
    26  * @bug 6366543 6370080
    27  * @summary Test that having a security manager doesn't trigger a
    27  * @summary Test that having a security manager doesn't trigger a
    28  *          NotCompliantMBeanException
    28  *          NotCompliantMBeanException
    29  * @author Daniel Fuchs, Yves Joan
    29  * @author Daniel Fuchs, Yves Joan
    30  * @modules java.desktop
    30  * @modules java.management
    31  *          java.management
       
    32  * @run clean AnnotationSecurityTest Described UnDescribed DescribedMBean
    31  * @run clean AnnotationSecurityTest Described UnDescribed DescribedMBean
    33  *            UnDescribedMBean SqeDescriptorKey DescribedMX DescribedMXBean
    32  *            UnDescribedMBean SqeDescriptorKey DescribedMX DescribedMXBean
    34  * @run build AnnotationSecurityTest Described UnDescribed DescribedMBean
    33  * @run build AnnotationSecurityTest Described UnDescribed DescribedMBean
    35  *            UnDescribedMBean SqeDescriptorKey DescribedMX DescribedMXBean
    34  *            UnDescribedMBean SqeDescriptorKey DescribedMX DescribedMXBean
    36  * @run main/othervm  AnnotationSecurityTest
    35  * @run main/othervm  AnnotationSecurityTest
    38 // -Djava.security.debug=access,domain,policy
    37 // -Djava.security.debug=access,domain,policy
    39 
    38 
    40 import java.io.File;
    39 import java.io.File;
    41 import java.io.IOException;
    40 import java.io.IOException;
    42 
    41 
    43 import java.lang.annotation.Annotation;
       
    44 import java.lang.management.ManagementFactory;
    42 import java.lang.management.ManagementFactory;
    45 import java.lang.reflect.AnnotatedElement;
       
    46 import java.lang.reflect.Method;
    43 import java.lang.reflect.Method;
    47 import java.lang.reflect.UndeclaredThrowableException;
       
    48 
       
    49 import javax.management.JMException;
       
    50 import javax.management.MBeanServer;
    44 import javax.management.MBeanServer;
    51 import javax.management.ObjectName;
    45 import javax.management.ObjectName;
    52 /**
    46 /**
    53  *
    47  *
    54  * @author Sun Microsystems, 2005 - All rights reserved.
    48  * @author Sun Microsystems, 2005 - All rights reserved.