< prev index next >

test/jdk/java/util/concurrent/tck/ReentrantLockTest.java

Print this page
8207003: Miscellaneous changes imported from jsr166 CVS 2018-09
Reviewed-by: martin, chegar

*** 1185,1195 **** try { // call await without holding lock?! await(cond, awaitMethod); throw new AssertionError("should throw"); } ! catch (IllegalMonitorStateException expected) {} catch (Throwable fail) { threadUnexpectedException(fail); }}}; Thread rogueThread = new Thread(rogue, "rogue"); threads.add(rogueThread); rogueThread.start(); --- 1185,1195 ---- try { // call await without holding lock?! await(cond, awaitMethod); throw new AssertionError("should throw"); } ! catch (IllegalMonitorStateException success) {} catch (Throwable fail) { threadUnexpectedException(fail); }}}; Thread rogueThread = new Thread(rogue, "rogue"); threads.add(rogueThread); rogueThread.start();
< prev index next >