--- jsr166/src/test/tck/AtomicIntegerFieldUpdaterTest.java 2003/08/31 19:24:53 1.1 +++ jsr166/src/test/tck/AtomicIntegerFieldUpdaterTest.java 2003/09/14 20:42:40 1.2 @@ -9,8 +9,9 @@ import java.util.concurrent.atomic.*; import junit.framework.*; import java.util.*; -public class AtomicIntegerFieldUpdaterTest extends TestCase{ +public class AtomicIntegerFieldUpdaterTest extends JSR166TestCase { volatile int x = 0; + long z; public static void main(String[] args){ junit.textui.TestRunner.run(suite()); @@ -29,6 +30,16 @@ public class AtomicIntegerFieldUpdaterTe fail("Exception not thrown"); } catch (RuntimeException rt) {} + } + + public void testConstructor2(){ + try{ + AtomicIntegerFieldUpdater + a = AtomicIntegerFieldUpdater.newUpdater + (getClass(), "z"); + fail("Exception not thrown"); + } + catch (RuntimeException rt) {} } public void testGetSet(){