Lambda Spec: Capture for method references like Optional<?>::get

XMLWordPrintable

    • Verified

      A method reference of the form "ReferenceType :: NonWildTypeArgumentsopt Identifier" uses the ReferenceType as the "type to search" for an applicable method. This is a bug, since wildcard-parameterized types should never be searched for members (see, e.g., JLS 4.5.2).

      Capture should be performed on the ReferenceType before performing a search.

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

              Created:
              Updated:
              Resolved: