Request for review (S): 6953246: JSR 292 should support SAM conversion

Rémi Forax forax at
Sun Sep 5 06:37:51 PDT 2010

Le 05/09/2010 09:04, John Rose a écrit :
> One important API point in MethodHandles:  A SAM constructor for method handles.
The answer to the question "Should we delegate equals/hashCode to the 
The answer is no !

hashcode should be System.identityHashCode(proxy)
equals should be proxy == args[0]
and toString() should returns getClass().getName() + '@' + 

i.e the proxy must simulate the fact that the SAM inherits from 


More information about the hotspot-compiler-dev mailing list