--- jsr166/src/test/tck/AtomicLongFieldUpdaterTest.java 2009/11/21 02:07:26 1.15 +++ jsr166/src/test/tck/AtomicLongFieldUpdaterTest.java 2009/12/01 09:56:28 1.17 @@ -31,8 +31,7 @@ public class AtomicLongFieldUpdaterTest a = AtomicLongFieldUpdater.newUpdater (AtomicLongFieldUpdaterTest.class, "y"); shouldThrow(); - } - catch (RuntimeException rt) {} + } catch (RuntimeException success) {} } /** @@ -44,8 +43,7 @@ public class AtomicLongFieldUpdaterTest a = AtomicLongFieldUpdater.newUpdater (AtomicLongFieldUpdaterTest.class, "z"); shouldThrow(); - } - catch (RuntimeException rt) {} + } catch (RuntimeException success) {} } /** @@ -57,9 +55,7 @@ public class AtomicLongFieldUpdaterTest a = AtomicLongFieldUpdater.newUpdater (AtomicLongFieldUpdaterTest.class, "w"); shouldThrow(); - } - - catch (RuntimeException rt) {} + } catch (RuntimeException success) {} } /** @@ -114,7 +110,7 @@ public class AtomicLongFieldUpdaterTest assertTrue(a.compareAndSet(this,2,-4)); assertEquals(-4,a.get(this)); assertFalse(a.compareAndSet(this,-5,7)); - assertFalse((7 == a.get(this))); + assertEquals(-4,a.get(this)); assertTrue(a.compareAndSet(this,-4,7)); assertEquals(7,a.get(this)); }