--- a/jdk/test/java/rmi/activation/Activatable/inactiveGroup/InactiveGroup.java Fri Dec 13 18:08:20 2013 -0800
+++ b/jdk/test/java/rmi/activation/Activatable/inactiveGroup/InactiveGroup.java Fri Dec 20 15:10:11 2013 -0800
@@ -145,7 +145,9 @@
* activation group's process hasn't gone away.
*/
System.err.println("Ping unicast object for existence");
- for (int i = 0; i < 10; i++) {
+ // set timeout 5 seconds
+ final long stopTime = System.currentTimeMillis() + 5000;
+ while (System.currentTimeMillis() < stopTime) {
unicastObj.ping();
Thread.sleep(500);
}