changeset 26365:a828828378f6

8057134: sun/management/jmxremote/startstop/JMXStartStopTest.java failing intermittently Reviewed-by: sla, dfuchs
author jbachorik
date Wed, 03 Sep 2014 17:08:58 +0200
parents d0c49e0d085f
children 13499e3d43df
files jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java	Wed Sep 03 16:05:41 2014 +0200
+++ b/jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java	Wed Sep 03 17:08:58 2014 +0200
@@ -26,7 +26,7 @@
 import java.lang.reflect.Method;
 import java.net.ConnectException;
 import java.net.ServerSocket;
-import java.rmi.NoSuchObjectException;
+import java.rmi.RemoteException;
 import java.rmi.registry.LocateRegistry;
 import java.rmi.registry.Registry;
 import java.util.ArrayList;
@@ -174,9 +174,9 @@
         } catch (Exception e) {
             Throwable t = e;
             while (t != null) {
-                if (t instanceof NoSuchObjectException ||
-                    t instanceof ConnectException ||
-                    t instanceof SSLHandshakeException) {
+                if (t instanceof RemoteException ||
+                    t instanceof SSLHandshakeException ||
+                    t instanceof ConnectException) {
                     break;
                 }
                 t = t.getCause();