On Mar 6, 2010, at 5:21 PM, Larry Chester wrote:
> Then to invoke on an Object x:
>
> lookup.get(x.getClass()).invokeGeneric(x);
>
> This is quite slow though (although I believe the bottleneck is in the
> invokeGeneric call).
I can certainly believe that: invokeGeneric is not fully implemente
Thanks for your reply!
My aim is to dispatch based on the dynamic type of the Object as described in:
http://en.wikipedia.org/wiki/Multiple_dispatch
Currently my implementation revolves around building a HashMap that
maps a dynamic type to a MethodHandle and invoking that:
HashMap lookup = new