# | Line 325 | Line 325 | public class AbstractQueuedSynchronizerT | |
---|---|---|
325 | /** | |
326 | * tryAcquireNanos is interruptible. | |
327 | */ | |
328 | < | public void testInterruptedException2() { |
328 | > | public void testInterruptedException2() throws InterruptedException { |
329 | final Mutex sync = new Mutex(); | |
330 | sync.acquire(1); | |
331 | Thread t = new Thread(new Runnable() { | |
# | Line 339 | Line 339 | public class AbstractQueuedSynchronizerT | |
339 | ||
340 | t.start(); | |
341 | t.interrupt(); | |
342 | + | t.join(); |
343 | } | |
344 | ||
345 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |