--- jsr166/src/test/tck/AtomicReferenceArrayTest.java 2009/11/17 02:53:14 1.15 +++ jsr166/src/test/tck/AtomicReferenceArrayTest.java 2009/11/17 06:58:50 1.16 @@ -133,10 +133,11 @@ public class AtomicReferenceArrayTest ex public void testCompareAndSetInMultipleThreads() throws InterruptedException { final AtomicReferenceArray a = new AtomicReferenceArray(1); a.set(0, one); - Thread t = new Thread(new Runnable() { - public void run() { - while (!a.compareAndSet(0, two, three)) Thread.yield(); - }}); + Thread t = new Thread(new CheckedRunnable() { + public void realRun() { + while (!a.compareAndSet(0, two, three)) + Thread.yield(); + }}); t.start(); assertTrue(a.compareAndSet(0, one, two));