test/java/beans/XMLDecoder/8028054/TestMethodFinder.java
Print this page
*** 71,82 ****
if (alive == 0) {
break;
}
Task.print(working + " out of " + alive + " threads are working");
if ((working == 0) && (++alarm == 10)) {
! Task.print("DEADLOCK DETECTED");
! System.exit(100);
}
Thread.sleep(1000);
}
}
}
--- 71,81 ----
if (alive == 0) {
break;
}
Task.print(working + " out of " + alive + " threads are working");
if ((working == 0) && (++alarm == 10)) {
! throw new RuntimeException("FAIL - DEADLOCK DETECTED");
}
Thread.sleep(1000);
}
}
}