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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: