ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/AtomicIntegerArray9Test.java
(Generate patch)

Comparing jsr166/src/test/tck/AtomicIntegerArray9Test.java (file contents):
Revision 1.3 by jsr166, Tue Oct 11 20:38:07 2016 UTC vs.
Revision 1.4 by jsr166, Fri Feb 22 19:27:47 2019 UTC

# Line 25 | Line 25 | public class AtomicIntegerArray9Test ext
25          AtomicIntegerArray aa = new AtomicIntegerArray(SIZE);
26          for (int index : new int[] { -1, SIZE }) {
27              final int j = index;
28 <            final Runnable[] tasks = {
28 >
29 >            assertThrows(
30 >                IndexOutOfBoundsException.class,
31                  () -> aa.getPlain(j),
32                  () -> aa.getOpaque(j),
33                  () -> aa.getAcquire(j),
# Line 38 | Line 40 | public class AtomicIntegerArray9Test ext
40                  () -> aa.weakCompareAndSetPlain(j, 1, 2),
41                  () -> aa.weakCompareAndSetVolatile(j, 1, 2),
42                  () -> aa.weakCompareAndSetAcquire(j, 1, 2),
43 <                () -> aa.weakCompareAndSetRelease(j, 1, 2),
42 <            };
43 <
44 <            assertThrows(IndexOutOfBoundsException.class, tasks);
43 >                () -> aa.weakCompareAndSetRelease(j, 1, 2));
44          }
45      }
46  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines