[foreign] RFR: add missing Lookup parameters on bind/bindRaw

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Tue May 15 11:50:02 UTC 2018


Hi,
as per yesterday cleanup, the Libraries API now takes a 
MethodHandles.Lookup that is used to perform caller-sensitive native 
library searches. The methods bind/bindRaw (the versions _not_ accepting 
an explicit Library object) should also get same treatment. Moreover, 
there should be a check for filtering out non-private lookup objects.

I've updated few tests to add missing lookup object parameter, and also 
added a new variant of BindTest which checks for 
IllegalArgumentException in case a bad lookup object (a public one) is 
supplied.

Webrev:

http://cr.openjdk.java.net/~mcimadamore/panama/cleanup-v2/

Cheers
Maurizio



More information about the panama-dev mailing list