10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test AnnotationSecurityTest.java
26 * @bug 6366543 6370080
27 * @summary Test that having a security manager doesn't trigger a
28 * NotCompliantMBeanException
29 * @author Daniel Fuchs, Yves Joan
30 * @modules java.management
31 * @run clean AnnotationSecurityTest Described UnDescribed DescribedMBean
32 * UnDescribedMBean SqeDescriptorKey DescribedMX DescribedMXBean
33 * @run build AnnotationSecurityTest Described UnDescribed DescribedMBean
34 * UnDescribedMBean SqeDescriptorKey DescribedMX DescribedMXBean
35 * @run main/othervm AnnotationSecurityTest
36 */
37 // -Djava.security.debug=access,domain,policy
38
39 import java.io.File;
40 import java.io.IOException;
41
42 import java.lang.management.ManagementFactory;
43 import java.lang.reflect.Method;
44 import javax.management.MBeanServer;
45 import javax.management.ObjectName;
46 /**
47 *
48 * @author Sun Microsystems, 2005 - All rights reserved.
49 */
50
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test AnnotationSecurityTest.java
26 * @bug 6366543 6370080
27 * @summary Test that having a security manager doesn't trigger a
28 * NotCompliantMBeanException
29 * @author Daniel Fuchs, Yves Joan
30 *
31 * @run clean AnnotationSecurityTest Described UnDescribed DescribedMBean
32 * UnDescribedMBean SqeDescriptorKey DescribedMX DescribedMXBean
33 * @run build AnnotationSecurityTest Described UnDescribed DescribedMBean
34 * UnDescribedMBean SqeDescriptorKey DescribedMX DescribedMXBean
35 * @run main/othervm AnnotationSecurityTest
36 */
37 // -Djava.security.debug=access,domain,policy
38
39 import java.io.File;
40 import java.io.IOException;
41
42 import java.lang.management.ManagementFactory;
43 import java.lang.reflect.Method;
44 import javax.management.MBeanServer;
45 import javax.management.ObjectName;
46 /**
47 *
48 * @author Sun Microsystems, 2005 - All rights reserved.
49 */
50
|