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

Comparing jsr166/src/test/tck/AtomicLongArray9Test.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 24 | Line 24 | public class AtomicLongArray9Test extend
24          AtomicLongArray aa = new AtomicLongArray(SIZE);
25          for (int index : new int[] { -1, SIZE }) {
26              final int j = index;
27 <            final Runnable[] tasks = {
27 >              assertThrows(
28 >                IndexOutOfBoundsException.class,
29                  () -> aa.getPlain(j),
30                  () -> aa.getOpaque(j),
31                  () -> aa.getAcquire(j),
# Line 37 | Line 38 | public class AtomicLongArray9Test extend
38                  () -> aa.weakCompareAndSetPlain(j, 1, 2),
39                  () -> aa.weakCompareAndSetVolatile(j, 1, 2),
40                  () -> aa.weakCompareAndSetAcquire(j, 1, 2),
41 <                () -> aa.weakCompareAndSetRelease(j, 1, 2),
41 <            };
42 <
43 <            assertThrows(IndexOutOfBoundsException.class, tasks);
41 >                () -> aa.weakCompareAndSetRelease(j, 1, 2));
42          }
43      }
44  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines