RFR: nestmates and methodhandles

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Thu Feb 25 19:00:08 UTC 2016

On 25/02/16 17:24, Stas Smirnov wrote:
> Maurizio, thanks for you suggestion, but since the target method 
> throws an exception, invocation of 
> inner.getSuperMethodMH(METHOD_NAME_PROTECTED) must be surrounded with 
> try-catch block, no? and in this case it does not make much sense
If you use Runnable as a target, yes - but you could use a different 
functional interface which is allowed to throw (AutoCloseable could be 
one already made).


More information about the valhalla-dev mailing list