--- jsr166/src/test/tck/AtomicLongFieldUpdaterTest.java 2013/04/01 20:58:58 1.24 +++ jsr166/src/test/tck/AtomicLongFieldUpdaterTest.java 2013/04/02 04:11:28 1.25 @@ -33,27 +33,29 @@ public class AtomicLongFieldUpdaterTest try { updaterFor("y"); shouldThrow(); - } catch (RuntimeException success) {} + } catch (RuntimeException success) { + assertTrue(success.getCause() != null); + } } /** - * construction with field not of given type throws RuntimeException + * construction with field not of given type throws IllegalArgumentException */ public void testConstructor2() { try { updaterFor("z"); shouldThrow(); - } catch (RuntimeException success) {} + } catch (IllegalArgumentException success) {} } /** - * construction with non-volatile field throws RuntimeException + * construction with non-volatile field throws IllegalArgumentException */ public void testConstructor3() { try { updaterFor("w"); shouldThrow(); - } catch (RuntimeException success) {} + } catch (IllegalArgumentException success) {} } /**