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.13 by jsr166, Sat Feb 16 20:50:29 2013 UTC

# Line 18 | Line 18 | public class ThreadLocalRandomTest exten
18          return new TestSuite(ThreadLocalRandomTest.class);
19      }
20  
21 <    /**
21 >    /*
22       * Testing coverage notes:
23       *
24       * We don't test randomness properties, but only that repeated
# 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