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 8058865
27 * @summary Checks that a serialized instance is not transmitted from an MXBean.
28 * All the communication should be done via Open Types
29 * @author Olivier Lagneau
30 * @modules java.management.rmi
31 * @library /lib/testlibrary
32 * @compile Basic.java
33 * @run main/othervm/timeout=300 -DDEBUG_STANDARD MXBeanWeirdParamTest
34 */
35
36 import java.util.Map;
37 import java.util.List;
38 import java.util.ArrayList;
39 import java.util.Arrays;
40
41 import java.lang.Process;
42 import java.lang.management.ManagementFactory;
43
44 import javax.management.MBeanServer;
45 import javax.management.MBeanServerConnection;
46 import javax.management.remote.JMXConnector;
47 import javax.management.remote.JMXConnectorFactory;
48 import javax.management.remote.JMXConnectorServer;
49 import javax.management.remote.JMXConnectorServerFactory;
50 import javax.management.remote.JMXServiceURL;
51
52 import javax.management.ObjectName;
53 import javax.management.openmbean.CompositeType;
54 import javax.management.openmbean.CompositeData;
55 import javax.management.openmbean.CompositeDataSupport;
56 import javax.management.openmbean.OpenType;
57 import javax.management.openmbean.SimpleType;
58 import javax.management.openmbean.TabularDataSupport;
59 import javax.management.openmbean.TabularType;
60
61 import jdk.testlibrary.ProcessTools;
62 import jdk.testlibrary.JDKToolFinder;
63
64 public class MXBeanWeirdParamTest {
65
66 private static String BASIC_MXBEAN_CLASS_NAME = "Basic";
67
68 private static final String CLIENT_CLASS_MAIN =
69 "MXBeanWeirdParamTest$ClientSide";
70
71 private JMXConnectorServer cs;
72
73 /*
74 * First Debug properties and arguments are collect in expected
75 * map (argName, value) format, then calls original test's run method.
76 */
77 public static void main(String args[]) throws Exception {
78
79 System.out.println("=================================================");
80
81 // Parses parameters
|
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 8058865
27 * @summary Checks that a serialized instance is not transmitted from an MXBean.
28 * All the communication should be done via Open Types
29 * @author Olivier Lagneau
30 * @modules java.management.rmi
31 * @library /lib/testlibrary
32 * @library /test/lib
33 * @compile Basic.java
34 * @run main/othervm/timeout=300 -DDEBUG_STANDARD MXBeanWeirdParamTest
35 */
36
37 import java.util.Map;
38 import java.util.List;
39 import java.util.ArrayList;
40 import java.util.Arrays;
41
42 import java.lang.Process;
43 import java.lang.management.ManagementFactory;
44
45 import javax.management.MBeanServer;
46 import javax.management.MBeanServerConnection;
47 import javax.management.remote.JMXConnector;
48 import javax.management.remote.JMXConnectorFactory;
49 import javax.management.remote.JMXConnectorServer;
50 import javax.management.remote.JMXConnectorServerFactory;
51 import javax.management.remote.JMXServiceURL;
52
53 import javax.management.ObjectName;
54 import javax.management.openmbean.CompositeType;
55 import javax.management.openmbean.CompositeData;
56 import javax.management.openmbean.CompositeDataSupport;
57 import javax.management.openmbean.OpenType;
58 import javax.management.openmbean.SimpleType;
59 import javax.management.openmbean.TabularDataSupport;
60 import javax.management.openmbean.TabularType;
61
62 import jdk.test.lib.process.ProcessTools;
63 import jdk.testlibrary.JDKToolFinder;
64
65 public class MXBeanWeirdParamTest {
66
67 private static String BASIC_MXBEAN_CLASS_NAME = "Basic";
68
69 private static final String CLIENT_CLASS_MAIN =
70 "MXBeanWeirdParamTest$ClientSide";
71
72 private JMXConnectorServer cs;
73
74 /*
75 * First Debug properties and arguments are collect in expected
76 * map (argName, value) format, then calls original test's run method.
77 */
78 public static void main(String args[]) throws Exception {
79
80 System.out.println("=================================================");
81
82 // Parses parameters
|