# | 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 | }}; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |