--- jsr166/src/test/tck/AtomicReferenceFieldUpdaterTest.java 2013/04/01 20:58:58 1.26 +++ jsr166/src/test/tck/AtomicReferenceFieldUpdaterTest.java 2013/04/02 04:11:28 1.27 @@ -33,7 +33,9 @@ public class AtomicReferenceFieldUpdater try { updaterFor("y"); shouldThrow(); - } catch (RuntimeException success) {} + } catch (RuntimeException success) { + assertTrue(success.getCause() != null); + } } /** @@ -47,13 +49,13 @@ public class AtomicReferenceFieldUpdater } /** - * Constructor with non-volatile field throws exception + * Constructor with non-volatile field throws IllegalArgumentException */ public void testConstructor3() { try { updaterFor("w"); shouldThrow(); - } catch (RuntimeException success) {} + } catch (IllegalArgumentException success) {} } /**