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

Inference: define supertype parameterization for wildcard-parameterized types

    XMLWordPrintable

Details

    Description

      Reduction of subtyping constraints (ArrayList<?> <: List<? super alpha>) invokes capture in javac, leading to incorrect constraints on ivars involving capture vars; these new types also foil the argument that incorporation will terminate.

      The correct behavior is unspecified: what is the parameterization of List that is a supertype of ArrayList<?>? How do we derive it?

      Attachments

        Issue Links

          Activity

            People

              dlsmith Dan Smith
              dlsmith Dan Smith
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: