--- jsr166/src/test/tck/AtomicReferenceFieldUpdaterTest.java 2009/11/17 03:12:51 1.14 +++ jsr166/src/test/tck/AtomicReferenceFieldUpdaterTest.java 2009/11/17 06:58:50 1.15 @@ -131,10 +131,11 @@ public class AtomicReferenceFieldUpdater return; } - Thread t = new Thread(new Runnable() { - public void run() { - while (!a.compareAndSet(AtomicReferenceFieldUpdaterTest.this, two, three)) Thread.yield(); - }}); + Thread t = new Thread(new CheckedRunnable() { + public void realRun() { + while (!a.compareAndSet(AtomicReferenceFieldUpdaterTest.this, two, three)) + Thread.yield(); + }}); t.start(); assertTrue(a.compareAndSet(this, one, two));