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

CopyOnWriteArrayList.COWSubList.subList does not validate range properly

XMLWordPrintable

        CopyOnWriteArrayList.COWSubList does not validate its args to the same extent as, for example, ArrayList.SubList. Specifically, it does not check if the from index is greater than the to index. Suggestion is to add a subListRangeCheck method like in ArrayList.SubList and use it for validation.

        Issue reported by Arne Siegel <v.a.ammodytes@googlemail.com>

              chegar Chris Hegarty
              akhil Akhil Arora (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: