diff --git a/jdk/src/share/classes/javax/management/MBeanServer.java b/jdk/src/share/classes/javax/management/MBeanServer.java index a08f64011df..613cf09cfc3 100644 --- a/jdk/src/share/classes/javax/management/MBeanServer.java +++ b/jdk/src/share/classes/javax/management/MBeanServer.java @@ -264,6 +264,8 @@ public interface MBeanServer extends MBeanServerConnection { * is sent as described above.
* * @throws RuntimeOperationsException {@inheritDoc} + * @throws RuntimeMBeanException {@inheritDoc} + * @throws RuntimeErrorException {@inheritDoc} */ public ObjectInstance createMBean(String className, ObjectName name) throws ReflectionException, InstanceAlreadyExistsException, @@ -276,6 +278,8 @@ public interface MBeanServer extends MBeanServerConnection { * is sent as described above. * * @throws RuntimeOperationsException {@inheritDoc} + * @throws RuntimeMBeanException {@inheritDoc} + * @throws RuntimeErrorException {@inheritDoc} */ public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName) @@ -289,6 +293,8 @@ public interface MBeanServer extends MBeanServerConnection { * is sent as described above. * * @throws RuntimeOperationsException {@inheritDoc} + * @throws RuntimeMBeanException {@inheritDoc} + * @throws RuntimeErrorException {@inheritDoc} */ public ObjectInstance createMBean(String className, ObjectName name, Object params[], String signature[]) @@ -302,6 +308,8 @@ public interface MBeanServer extends MBeanServerConnection { * is sent as described above. * * @throws RuntimeOperationsException {@inheritDoc} + * @throws RuntimeMBeanException {@inheritDoc} + * @throws RuntimeErrorException {@inheritDoc} */ public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object params[], diff --git a/jdk/src/share/classes/javax/management/MBeanServerConnection.java b/jdk/src/share/classes/javax/management/MBeanServerConnection.java index 77930149154..8b0dd6646ce 100644 --- a/jdk/src/share/classes/javax/management/MBeanServerConnection.java +++ b/jdk/src/share/classes/javax/management/MBeanServerConnection.java @@ -78,19 +78,19 @@ public interface MBeanServerConnection extends NotificationManager { * MBean will not be registered. * @exception RuntimeMBeanException If thepostRegister
* (MBeanRegistration interface) method of the MBean throws a
- * RuntimeException, the createMBean method will
+ * RuntimeException, the createMBean method will
* throw a RuntimeMBeanException, although the MBean creation
* and registration succeeded. In such a case, the MBean will be actually
- * registered even though the createMBean method
+ * registered even though the createMBean method
* threw an exception. Note that RuntimeMBeanException can
* also be thrown by preRegister, in which case the MBean
* will not be registered.
* @exception RuntimeErrorException If the postRegister
* (MBeanRegistration interface) method of the MBean throws an
- * Error, the createMBean method will
+ * Error, the createMBean method will
* throw a RuntimeErrorException, although the MBean creation
* and registration succeeded. In such a case, the MBean will be actually
- * registered even though the createMBean method
+ * registered even though the createMBean method
* threw an exception. Note that RuntimeErrorException can
* also be thrown by preRegister, in which case the MBean
* will not be registered.
@@ -150,19 +150,19 @@ public interface MBeanServerConnection extends NotificationManager {
* MBean will not be registered.
* @exception RuntimeMBeanException If the postRegister
* (MBeanRegistration interface) method of the MBean throws a
- * RuntimeException, the createMBean method will
+ * RuntimeException, the createMBean method will
* throw a RuntimeMBeanException, although the MBean creation
* and registration succeeded. In such a case, the MBean will be actually
- * registered even though the createMBean method
+ * registered even though the createMBean method
* threw an exception. Note that RuntimeMBeanException can
* also be thrown by preRegister, in which case the MBean
* will not be registered.
* @exception RuntimeErrorException If the postRegister
* (MBeanRegistration interface) method of the MBean throws an
- * Error, the createMBean method will
+ * Error, the createMBean method will
* throw a RuntimeErrorException, although the MBean creation
* and registration succeeded. In such a case, the MBean will be actually
- * registered even though the createMBean method
+ * registered even though the createMBean method
* threw an exception. Note that RuntimeErrorException can
* also be thrown by preRegister, in which case the MBean
* will not be registered.
@@ -225,19 +225,19 @@ public interface MBeanServerConnection extends NotificationManager {
* MBean will not be registered.
* @exception RuntimeMBeanException If the postRegister
* (MBeanRegistration interface) method of the MBean throws a
- * RuntimeException, the createMBean method will
+ * RuntimeException, the createMBean method will
* throw a RuntimeMBeanException, although the MBean creation
* and registration succeeded. In such a case, the MBean will be actually
- * registered even though the createMBean method
+ * registered even though the createMBean method
* threw an exception. Note that RuntimeMBeanException can
* also be thrown by preRegister, in which case the MBean
* will not be registered.
* @exception RuntimeErrorException If the postRegister
* (MBeanRegistration interface) method of the MBean throws an
- * Error, the createMBean method will
+ * Error, the createMBean method will
* throw a RuntimeErrorException, although the MBean creation
* and registration succeeded. In such a case, the MBean will be actually
- * registered even though the createMBean method
+ * registered even though the createMBean method
* threw an exception. Note that RuntimeErrorException can
* also be thrown by preRegister, in which case the MBean
* will not be registered.
@@ -297,19 +297,19 @@ public interface MBeanServerConnection extends NotificationManager {
* MBean will not be registered.
* @exception RuntimeMBeanException If the postRegister
* (MBeanRegistration interface) method of the MBean throws a
- * RuntimeException, the createMBean method will
+ * RuntimeException, the createMBean method will
* throw a RuntimeMBeanException, although the MBean creation
* and registration succeeded. In such a case, the MBean will be actually
- * registered even though the createMBean method
+ * registered even though the createMBean method
* threw an exception. Note that RuntimeMBeanException can
* also be thrown by preRegister, in which case the MBean
* will not be registered.
* @exception RuntimeErrorException If the postRegister method
* (MBeanRegistration interface) method of the MBean throws an
- * Error, the createMBean method will
+ * Error, the createMBean method will
* throw a RuntimeErrorException, although the MBean creation
* and registration succeeded. In such a case, the MBean will be actually
- * registered even though the createMBean method
+ * registered even though the createMBean method
* threw an exception. Note that RuntimeErrorException can
* also be thrown by preRegister, in which case the MBean
* will not be registered.
@@ -351,19 +351,19 @@ public interface MBeanServerConnection extends NotificationManager {
* has thrown an exception.
* @exception RuntimeMBeanException If the postDeregister
* (MBeanRegistration interface) method of the MBean throws a
- * RuntimeException, the unregisterMBean method
+ * RuntimeException, the unregisterMBean method
* will throw a RuntimeMBeanException, although the MBean
* unregistration succeeded. In such a case, the MBean will be actually
- * unregistered even though the unregisterMBean method
+ * unregistered even though the unregisterMBean method
* threw an exception. Note that RuntimeMBeanException can
* also be thrown by preDeregister, in which case the MBean
* will remain registered.
* @exception RuntimeErrorException If the postDeregister
* (MBeanRegistration interface) method of the MBean throws an
- * Error, the unregisterMBean method will
+ * Error, the unregisterMBean method will
* throw a RuntimeErrorException, although the MBean
* unregistration succeeded. In such a case, the MBean will be actually
- * unregistered even though the unregisterMBean method
+ * unregistered even though the unregisterMBean method
* threw an exception. Note that RuntimeMBeanException can
* also be thrown by preDeregister, in which case the MBean
* will remain registered.
diff --git a/jdk/src/share/classes/javax/management/openmbean/CompositeType.java b/jdk/src/share/classes/javax/management/openmbean/CompositeType.java
index b513b0faa9a..b4c662ec9bc 100644
--- a/jdk/src/share/classes/javax/management/openmbean/CompositeType.java
+++ b/jdk/src/share/classes/javax/management/openmbean/CompositeType.java
@@ -89,7 +89,7 @@ public class CompositeType extends OpenType {
*
* @param itemNames The names of the items contained in the
* composite data values described by this CompositeType instance;
- * cannot be null and should contain at least one element; no element can be a null or empty string.
+ * cannot be null; no element can be null or an empty string.
* Note that the order in which the item names are given is not important to differentiate a
* CompositeType instance from another;
* the item names are internally stored sorted in ascending alphanumeric order.
@@ -97,7 +97,7 @@ public class CompositeType extends OpenType {
* @param itemDescriptions The descriptions, in the same order as itemNames, of the items contained in the
* composite data values described by this CompositeType instance;
* should be of the same size as itemNames;
- * no element can be a null or empty string.
+ * no element can be null or an empty string.
*
* @param itemTypes The open type instances, in the same order as itemNames, describing the items contained
* in the composite data values described by this CompositeType instance;
@@ -125,7 +125,7 @@ public class CompositeType extends OpenType {
//
super(CompositeData.class.getName(), typeName, description, false);
- // Check the 3 arrays are not null or empty (ie length==0) and that there is no null element or empty string in them
+ // Check the 3 arrays are not null and that there is no null element or empty string in them
//
checkForNullElement(itemNames, "itemNames");
checkForNullElement(itemDescriptions, "itemDescriptions");
diff --git a/jdk/test/javax/management/eventService/LeaseManagerDeadlockTest.java b/jdk/test/javax/management/eventService/LeaseManagerDeadlockTest.java
index 586b2440226..453aafe4bd0 100644
--- a/jdk/test/javax/management/eventService/LeaseManagerDeadlockTest.java
+++ b/jdk/test/javax/management/eventService/LeaseManagerDeadlockTest.java
@@ -26,6 +26,7 @@
* @bug 6717789
* @summary Check that a lock is not held when a LeaseManager expires.
* @author Eamonn McManus
+ * @compile -XDignore.symbol.file=true LeaseManagerDeadlockTest.java
*/
import com.sun.jmx.event.LeaseManager;