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
26 * @bug 7150256
27 * @summary Permissions Tests for the DiagnosticCommandMBean
28 * @author Frederic Parain
29 *
30 * @modules jdk.management
31 * @run main/othervm DcmdMBeanPermissionsTest
32 */
33
34 import java.lang.management.ManagementFactory;
35 import java.lang.reflect.Constructor;
36 import java.lang.reflect.InvocationTargetException;
37 import java.lang.reflect.ReflectPermission;
38 import java.security.Permission;
39 import java.util.HashSet;
40 import java.util.Iterator;
41 import javax.management.Descriptor;
42 import javax.management.InstanceNotFoundException;
43 import javax.management.IntrospectionException;
44 import javax.management.MBeanException;
45 import javax.management.MBeanInfo;
46 import javax.management.MBeanOperationInfo;
47 import javax.management.MBeanPermission;
48 import javax.management.MBeanServer;
49 import javax.management.MalformedObjectNameException;
50 import javax.management.ObjectName;
|
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
26 * @bug 7150256
27 * @summary Permissions Tests for the DiagnosticCommandMBean
28 * @author Frederic Parain
29 *
30 * @modules java.logging
31 * java.management
32 *
33 * @run main/othervm DcmdMBeanPermissionsTest
34 */
35
36 import java.lang.management.ManagementFactory;
37 import java.lang.reflect.Constructor;
38 import java.lang.reflect.InvocationTargetException;
39 import java.lang.reflect.ReflectPermission;
40 import java.security.Permission;
41 import java.util.HashSet;
42 import java.util.Iterator;
43 import javax.management.Descriptor;
44 import javax.management.InstanceNotFoundException;
45 import javax.management.IntrospectionException;
46 import javax.management.MBeanException;
47 import javax.management.MBeanInfo;
48 import javax.management.MBeanOperationInfo;
49 import javax.management.MBeanPermission;
50 import javax.management.MBeanServer;
51 import javax.management.MalformedObjectNameException;
52 import javax.management.ObjectName;
|