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

(coll) Generics and collections support for generic arrays

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description

      A DESCRIPTION OF THE REQUEST :
      * Add addAll(<? extends E>[] array) to collections making them more array compatible.
      * Add containsAll(<? extends E>[] array) to collections making them more array compatible.
      * Add removeAll(<? extends E>[] array) to collections making them more array compatible.
      * Add retainAll(<? extends E>[] array) to collections making them more array compatible.
      * Prevent the need for addAll(Arrays.asList(array)).


      JUSTIFICATION :
      This is one of many RFEs produced from a community discussion at
      http://forums.java.net/jive/thread.jspa?threadID=143. Further
      justification could typically be found at the given link or off a
      thread listed at the given link.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Definately remove the need for addAll(Arrays.asList(array)).
      Backwards compatible with current generics support.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rmandalasunw Ranjith Mandala (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: