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

Lambda Spec: Adjust rules for deriving function descriptor from a wildcard-parameterized type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • None
    • specification

      Deriving a descriptor from a wildcard-parameterized type (Predicate<? super Number>), in the absence of an explicit lambda, uses the use-site bound by not any declaration-site bounds. This is an unnecessary limitation.

      Also, a wildcard-parameterized type has a descriptor only if its non-wildcard counterpart is a well-formed type (type arguments are within their bounds). But we don't have a way to test for well-formedness of a non-proper type during inference. So the derivation process needs to guarantee that the type will be well-formed, for all ivar instantiations.

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

              Created:
              Updated:
              Resolved: