7009998: JMX synchronization during connection restart is faulty
authordsamersoff
Thu, 20 Dec 2012 17:24:56 +0400
changeset 14913 7274b8c518e8
parent 14912 e6fc057a8011
child 14914 69bfd88e3ea1
7009998: JMX synchronization during connection restart is faulty Summary: add a return statement after the re-connecting has finished and the state is CONNECTED Reviewed-by: sjiang Contributed-by: jaroslav.bachorik@oracle.com
jdk/make/netbeans/jmx/build.properties
jdk/src/share/classes/com/sun/jmx/remote/internal/ClientCommunicatorAdmin.java
--- a/jdk/make/netbeans/jmx/build.properties	Thu Dec 20 16:56:33 2012 +0400
+++ b/jdk/make/netbeans/jmx/build.properties	Thu Dec 20 17:24:56 2012 +0400
@@ -38,6 +38,7 @@
     com/sun/jmx/snmp/
 
 jtreg.tests=\
+    com/sun/jmx/ \
     com/sun/management/ \
     java/lang/management/ \
     javax/management/
--- a/jdk/src/share/classes/com/sun/jmx/remote/internal/ClientCommunicatorAdmin.java	Thu Dec 20 16:56:33 2012 +0400
+++ b/jdk/src/share/classes/com/sun/jmx/remote/internal/ClientCommunicatorAdmin.java	Thu Dec 20 17:24:56 2012 +0400
@@ -115,6 +115,7 @@
                     // restarted is failed by another thread
                     throw ioe;
                 }
+                return;
             } else {
                 state = RE_CONNECTING;
                 lock.notifyAll();