This was very cool, adding a profiler using MH

Rémi Forax forax at univ-mlv.fr
Fri Feb 17 02:17:46 PST 2012


On 02/17/2012 11:10 AM, Charles Oliver Nutter wrote:
> On Fri, Feb 17, 2012 at 4:05 AM, Rémi Forax<forax at univ-mlv.fr>  wrote:
>>> You could also interpose on abnormal termination (exceptions), using guardWithCatch.
>> The try-finallly method handle combiner is one example of the cookbook:
>> http://code.google.com/p/jsr292-cookbook/source/browse/trunk/interceptors/src/jsr292/cookbook/interceptors/Interceptors.java#68
> So painful! :)
>
> handle = Binder
>          .from(target.type())
>          .tryFinally(handler)
>          .invoke(target);

pardon :)

handle = tryFinally(target, handler);

>
> - Charlie

Rémi



More information about the mlvm-dev mailing list