--- jsr166/src/test/tck/ThreadLocalRandomTest.java 2011/06/03 21:36:55 1.11 +++ jsr166/src/test/tck/ThreadLocalRandomTest.java 2013/02/16 20:50:29 1.13 @@ -18,7 +18,7 @@ public class ThreadLocalRandomTest exten return new TestSuite(ThreadLocalRandomTest.class); } - /** + /* * Testing coverage notes: * * We don't test randomness properties, but only that repeated @@ -271,7 +271,8 @@ public class ThreadLocalRandomTest exten public void realRun() { ThreadLocalRandom current = ThreadLocalRandom.current(); assertSame(current, ThreadLocalRandom.current()); - assertNotSame(current, threadLocalRandom.get()); + // test bug: the following is not guaranteed and not true in JDK8 + // assertNotSame(current, threadLocalRandom.get()); rand.set(current.nextLong()); threadLocalRandom.set(current); }};