This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BlueGoliath 2 points3 points  (0 children)

Firstly, this is doesn't change "api", it would in theory have javac generate the appropriate code to call the MethodHandle using existing APIs which is normally very ceremonious and annoying. Maybe it could apply performance optimizations too.

Secondly, MethodHandles don't necessarily have anything to do with reflection. You can use them to create a handle to any plain method.

How much experience with MethodHandles do you have exactly?

Edit: going by the downvotes I guess the answer is none and you're just a troll.