Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1476

Use synchronise on a set created with Collections.synchronizedSet before iterating

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.9
    • Fix Version/s: 3.10
    • Component/s: lang.*
    • Labels:
      None

      Description

      Placeholder for PR created in GitHub.

      Link to Java docs: https://docs.oracle.com/javase/9/docs/api/java/util/Collections.html#synchronizedSet-java.util.Set-

      >It is imperative that the user manually synchronize on the returned collection when traversing it via Iterator, Spliterator or Stream:

        Attachments

          Activity

            People

            • Assignee:
              kinow Bruno P. Kinoshita
              Reporter:
              kinow Bruno P. Kinoshita
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: