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:
HashMapClass,
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 implemented
On Feb 28, 2010, at 3:48 PM, Larry Chester wrote:
So I've been playing around with invokedynamic (with build 84),
however I've stumbled on something I find quite strange!
Consider two objects a and b that both reference a String. a is
declared as a String but b is only an Object. When I