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

Specification of Collections.synchronized* need to state traversal constraints

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • None
    • core-libs
    • None

      The Collections.synchronizedCollection states the traversal constraints for Iterator/Spliterator/Stream:

           * It is imperative that the user manually synchronize on the returned
           * collection when traversing it via {@link Iterator}, {@link Spliterator}
           * or {@link Stream}:

      The other synchronized* methods need to be updated to state the same.

            psandoz Paul Sandoz
            psandoz Paul Sandoz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: