Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7017494

Example in java.lang.ThreadLocal documentation is incorrect.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 6u23
    • core-libs

      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.

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: