--- jsr166/src/test/tck/AtomicLongFieldUpdaterTest.java 2009/11/17 03:12:51 1.13 +++ jsr166/src/test/tck/AtomicLongFieldUpdaterTest.java 2009/11/17 06:58:50 1.14 @@ -133,10 +133,11 @@ public class AtomicLongFieldUpdaterTest return; } - Thread t = new Thread(new Runnable() { - public void run() { - while (!a.compareAndSet(AtomicLongFieldUpdaterTest.this, 2, 3)) Thread.yield(); - }}); + Thread t = new Thread(new CheckedRunnable() { + public void realRun() { + while (!a.compareAndSet(AtomicLongFieldUpdaterTest.this, 2, 3)) + Thread.yield(); + }}); t.start(); assertTrue(a.compareAndSet(this, 1, 2));