changeset 6299:3f014bc09297

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
author dsamersoff
date Thu, 20 Dec 2012 17:24:56 +0400
parents e43f90d5af11
children d01a810798e0
files make/netbeans/jmx/build.properties src/share/classes/com/sun/jmx/remote/internal/ClientCommunicatorAdmin.java
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/make/netbeans/jmx/build.properties	Thu Dec 20 16:56:33 2012 +0400
+++ b/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/src/share/classes/com/sun/jmx/remote/internal/ClientCommunicatorAdmin.java	Thu Dec 20 16:56:33 2012 +0400
+++ b/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();