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

BitSet must document its thread-safety

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • core-libs
    • None
    • beta2
    • generic
    • generic
    • Verified

        BitSet performs no synchronization. Its specification should make this clear. Currently, it is misleading: the spec for the hashCode method vaguely implies that it is thread-safe. The misleading occurrence of the synchronized keyword should be removed, and a note should be added to the class comment explaining that the class requires external synchronization if it is to be used in a multithreaded setting.

            mmcclosksunw Michael Mccloskey (Inactive)
            jjb Josh Bloch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: