--- jsr166/src/test/tck/AtomicReferenceFieldUpdaterTest.java 2009/11/16 05:30:07 1.13 +++ jsr166/src/test/tck/AtomicReferenceFieldUpdaterTest.java 2009/11/17 03:12:51 1.14 @@ -122,7 +122,7 @@ public class AtomicReferenceFieldUpdater * compareAndSet in one thread enables another waiting for value * to succeed */ - public void testCompareAndSetInMultipleThreads() { + public void testCompareAndSetInMultipleThreads() throws Exception { x = one; final AtomicReferenceFieldUpdatera; try { @@ -135,16 +135,12 @@ public class AtomicReferenceFieldUpdater public void run() { while (!a.compareAndSet(AtomicReferenceFieldUpdaterTest.this, two, three)) Thread.yield(); }}); - try { - t.start(); - assertTrue(a.compareAndSet(this, one, two)); - t.join(LONG_DELAY_MS); - assertFalse(t.isAlive()); - assertEquals(a.get(this), three); - } - catch (Exception e) { - unexpectedException(); - } + + t.start(); + assertTrue(a.compareAndSet(this, one, two)); + t.join(LONG_DELAY_MS); + assertFalse(t.isAlive()); + assertEquals(a.get(this), three); } /**