BootstrapMethodError caused by LambdaConversionException caused by using MethodHandle::invokeExact as a method reference
问题 I was trying to check if it is possible to use MethodHandle::invoke or MethodHandle::invokeExact as method references for a functional interface that accepts a MethodHandle and returns a generified output. (I know that invoke and invokeExact are signature polymorphic, hence the metafactory call in InvokeExact. However, I wanted to know if the compiler is able to elide the things that I had to do to derive a suitable version of invoke/invokeExact.) invoke.InvokeExact0 package invoke; import