< prev index next >

test/javax/management/MBeanServer/OldMBeanServerTest.java

Print this page
rev 16783 : 8176176: fix @modules in jdk_svc tests
Reviewed-by: duke


  80 import javax.management.ObjectName;
  81 import javax.management.OperationsException;
  82 import javax.management.QueryEval;
  83 import javax.management.QueryExp;
  84 import javax.management.ReflectionException;
  85 import javax.management.RuntimeErrorException;
  86 import javax.management.RuntimeMBeanException;
  87 import javax.management.StandardMBean;
  88 import javax.management.loading.ClassLoaderRepository;
  89 import javax.management.remote.JMXConnector;
  90 import javax.management.remote.JMXConnectorFactory;
  91 import javax.management.remote.JMXConnectorServer;
  92 import javax.management.remote.JMXConnectorServerFactory;
  93 import javax.management.remote.JMXServiceURL;
  94 
  95 /*
  96  * @test OldMBeanServerTest.java
  97  * @bug 5072268
  98  * @summary Test that nothing assumes a post-1.2 MBeanServer
  99  * @author Eamonn McManus

 100  * @modules java.management.rmi

 101  * @run main/othervm -ea OldMBeanServerTest
 102  */
 103 
 104 /*
 105  * We defined the MBeanServerBuilder class and the associated system
 106  * property javax.management.builder.initial in version 1.2 of the JMX
 107  * spec.  That amounts to a guarantee that someone can set the property
 108  * to an MBeanServer that only knows about JMX 1.2 semantics, and if they
 109  * only do JMX 1.2 operations, everything should work.  This test is a
 110  * sanity check that ensures we don't inadvertently make any API changes
 111  * that stop that from being true.  It includes a complete (if slow)
 112  * MBeanServer implementation.  That implementation doesn't replicate the
 113  * mandated exception behaviour everywhere, though, since there's lots of
 114  * arbitrary cruft in that.  Also, the behaviour of concurrent unregisterMBean
 115  * calls is incorrect in detail.
 116  */
 117 
 118 public class OldMBeanServerTest {
 119     private static MBeanServerConnection mbsc;
 120     private static String failure;




  80 import javax.management.ObjectName;
  81 import javax.management.OperationsException;
  82 import javax.management.QueryEval;
  83 import javax.management.QueryExp;
  84 import javax.management.ReflectionException;
  85 import javax.management.RuntimeErrorException;
  86 import javax.management.RuntimeMBeanException;
  87 import javax.management.StandardMBean;
  88 import javax.management.loading.ClassLoaderRepository;
  89 import javax.management.remote.JMXConnector;
  90 import javax.management.remote.JMXConnectorFactory;
  91 import javax.management.remote.JMXConnectorServer;
  92 import javax.management.remote.JMXConnectorServerFactory;
  93 import javax.management.remote.JMXServiceURL;
  94 
  95 /*
  96  * @test OldMBeanServerTest.java
  97  * @bug 5072268
  98  * @summary Test that nothing assumes a post-1.2 MBeanServer
  99  * @author Eamonn McManus
 100  *
 101  * @modules java.management.rmi
 102  *
 103  * @run main/othervm -ea OldMBeanServerTest
 104  */
 105 
 106 /*
 107  * We defined the MBeanServerBuilder class and the associated system
 108  * property javax.management.builder.initial in version 1.2 of the JMX
 109  * spec.  That amounts to a guarantee that someone can set the property
 110  * to an MBeanServer that only knows about JMX 1.2 semantics, and if they
 111  * only do JMX 1.2 operations, everything should work.  This test is a
 112  * sanity check that ensures we don't inadvertently make any API changes
 113  * that stop that from being true.  It includes a complete (if slow)
 114  * MBeanServer implementation.  That implementation doesn't replicate the
 115  * mandated exception behaviour everywhere, though, since there's lots of
 116  * arbitrary cruft in that.  Also, the behaviour of concurrent unregisterMBean
 117  * calls is incorrect in detail.
 118  */
 119 
 120 public class OldMBeanServerTest {
 121     private static MBeanServerConnection mbsc;
 122     private static String failure;


< prev index next >