JDK-7017494 : Example in java.lang.ThreadLocal documentation is incorrect.
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 6u23
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2011-02-06
  • Updated: 2012-09-06
  • Resolved: 2011-03-04
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :


A DESCRIPTION OF THE PROBLEM :
The example at the top of the page (http://download.oracle.com/javase/6/docs/api/java/lang/ThreadLocal.html) should have

return uniqueNum.get();

instead of

return uniqueId.get();


REPRODUCIBILITY :
This bug can be reproduced always.