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

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

    Details

    • Subcomponent:
    • Verification:
      Verified

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: