--- jsr166/src/test/tck/AtomicReferenceTest.java 2009/11/17 03:12:51 1.12 +++ jsr166/src/test/tck/AtomicReferenceTest.java 2009/11/17 06:58:50 1.13 @@ -78,10 +78,11 @@ public class AtomicReferenceTest extends */ public void testCompareAndSetInMultipleThreads() throws Exception { final AtomicReference ai = new AtomicReference(one); - Thread t = new Thread(new Runnable() { - public void run() { - while (!ai.compareAndSet(two, three)) Thread.yield(); - }}); + Thread t = new Thread(new CheckedRunnable() { + public void realRun() { + while (!ai.compareAndSet(two, three)) + Thread.yield(); + }}); t.start(); assertTrue(ai.compareAndSet(one, two));