IMPORTANT: Missing feature in MethodHandles?

Charles Oliver Nutter headius at headius.com
Fri Jun 10 17:05:21 PDT 2011


On Fri, Jun 10, 2011 at 6:55 PM, John Rose <john.r.rose at oracle.com> wrote:
> On Jun 10, 2011, at 4:39 PM, Charles Oliver Nutter wrote:
>
>> Please tell me I'm wrong, or tell me that we can modify catchException
>> in some way to also allow post-processing of non-exceptional results
>> (with return value inserted where the Throwable would go)!
>
> I think this does what you want:
>
>  mh = foldArguments(postProcessor, mh);

Yup, it's close, but see my other post just now to JVM-L. It's not
possible to do two mutually-exclusive finally paths for both
exceptional and non-exceptional.

Am I wrong?

- Charlie


More information about the mlvm-dev mailing list