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

Method references to VarHandle accessors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • None
    • core-libs
    • None

        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.

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

                Created:
                Updated:
                Resolved: