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

generics: non-generic code should be able to call covariant method

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 5.0
    • tools
    • tiger
    • generic
    • solaris_8

      When mixing generic and non-generic code, the non-generic code should be
      allowed to call a covariant method. The result should be a call to the
      method with the most specific return type. It should not cause an
      ambiguity error.

      This is necessary to support retrofitting covariance onto existing APIs.

            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: