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

Allow void-returning filters for MethodHandles::collectCoordinates

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 22
    • 22
    • core-libs
    • None

    Description

      MethodHandles::collectCoordinates, which is used to adapt var handles, currently rejects filters that return void.

      However, the MethodHandle equivalent, collectArguments, does allow filters returning void.

      We should allow them for collectCoordinates too. This is pretty trivial to implement since the implementation delegates to collectArguments already.

      Attachments

        Issue Links

          Activity

            People

              jvernee Jorn Vernee
              jvernee Jorn Vernee
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: