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

Comparing jsr166/src/test/tck/ThreadLocalRandomTest.java (file contents):
Revision 1.11 by jsr166, Fri Jun 3 21:36:55 2011 UTC vs.
Revision 1.12 by dl, Wed Jan 9 20:22:23 2013 UTC

# Line 271 | Line 271 | public class ThreadLocalRandomTest exten
271              public void realRun() {
272                  ThreadLocalRandom current = ThreadLocalRandom.current();
273                  assertSame(current, ThreadLocalRandom.current());
274 <                assertNotSame(current, threadLocalRandom.get());
274 >                // test bug: the following is not guaranteed and not true in JDK8
275 >                //                assertNotSame(current, threadLocalRandom.get());
276                  rand.set(current.nextLong());
277                  threadLocalRandom.set(current);
278              }};

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines