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

retrofit of covariant returns on Collection breaks existing binary impls

XMLWordPrintable

    • b24
    • generic, x86, sparc
    • linux, solaris_8, solaris_10, windows_2003

      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.

            gafter Neal Gafter (Inactive)
            gafter Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: