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

(coll) Add covariant overrides to Collections clone methods

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 8
    • Fix Version/s: tbd_major
    • Component/s: core-libs
    • Labels:
      None

      Description

      The clone methods on the Cloneable collections just return the type Object, as the clone method inherited from Object does. More precise information about be returned by adding a covariant override of clone to the Cloneable collections.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              darcy Joe Darcy
              Reporter:
              darcy Joe Darcy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: