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
--- 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();