Javac syntax for MethodHandle (Was Re: I would like to discuss the MethodHandles factory)
pdoubleya at gmail.com
Tue May 12 11:56:37 PDT 2009
There was some discussion on a proposal like this for Project Coin
(small language changes for Java 7); see this mail thread:
I don't believe this is currently under consideration for Java 7.
> All the runtime access methods like findVirtual, findSpecial and
> findStatic should of course remain. :-) I am only talking about that
> I would really like to be able to refer to javac compile time checked
> method handles (and potentially method types as well). I believe it to be
> very useful since in many situations you will create a method handle
> and know at compile time what method you want handled. For
> example you might want to return a method handle to one of
> your own methods. Catching a spelling mistake at compile time is
> very useful.
More information about the mlvm-dev