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

Allow void-returning filters for MethodHandles::collectCoordinates

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: