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

retrofit of covariant returns on Collection breaks existing binary impls

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b24
    • CPU:
      generic, x86, sparc
    • OS:
      linux, solaris_8, solaris_10, windows_2003

      Description

      The retrofit of iterable onto Collection uses covariant returns, violating the rule that one must not retrofit covariant returns onto existing extensible classes or interfaces. Existing (binary) implementations of Collection will break.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gafter Neal Gafter
              Reporter:
              gafter Neal Gafter
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: