[Nestmates] RFR: 8187766: [Nestmates] Remove MethodHandles.Lookup.findSpecial changes

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Tue Oct 3 10:55:14 UTC 2017


Looks good - nice improvements to the test!

Maurizio


On 03/10/17 11:47, David Holmes wrote:
> Bug: https://bugs.openjdk.java.net/browse/JDK-8187766
> webrev: http://cr.openjdk.java.net/~dholmes/8187766/webrev/
>
> Now that we no longer use invokespecial for private nestmate access, 
> the support previously added to Lookup.findSpecial should be removed 
> again. This was overlooked in JDK-8187360.
>
> The MethodHandle tests needs to be updated to use findVirtual instead 
> of findSpecial - and we can add negative tests for findSpecial. When 
> the caller and target are the same class/interface then findSpecial 
> can still be used.
>
>
> Thanks,
> David
> -----



More information about the valhalla-dev mailing list