Library support for generating BSM for value type's hashCode/equals/toString

Paul Sandoz paul.sandoz at oracle.com
Fri Jun 8 04:37:57 UTC 2018


> On Jun 7, 2018, at 6:04 PM, mandy chung <mandy.chung at oracle.com> wrote:
> 
> 
> 
> On 6/7/18 5:50 PM, Paul Sandoz wrote:>
>> In any case one future refinement later is for the BSM to verify the
>> method type parameter is the same as or a super type of the lookup
>> class.
> 
> Good point but only need to check the same type. Value class is final, right?
> 

Yes,. I was thinking the target MH could accept Object or an implemented interface and possibly producing a CCE on invocation, but that seems pointless.


> I will add that when I remove the static arg in the next patch.
> 

Ok.

Paul.


More information about the valhalla-dev mailing list