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

Method references to VarHandle accessors

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11
    • Component/s: core-libs
    • Labels:
      None

      Backports

        Description

        It is not currently possible to assign a compatible functional interface to a method reference referring to a signature polymorphic method on a VarHandle.

        This is an oversight missed in the original integration of VarHandles.

        Additionally, javac behaviour may need to be checked for polymorphic return types when matching the return type of the polymorphic method with the return type of the functional interface method.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  psandoz Paul Sandoz
                  Reporter:
                  psandoz Paul Sandoz
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: