[foreign] RFR: add missing Lookup parameters on bind/bindRaw
Sundararajan Athijegannathan
sundararajan.athijegannathan at oracle.com
Tue May 15 12:09:51 UTC 2018
* checkLookup():
could add explicit null check by
Objects.requireNonNull(lookup).hasPrivateAccess()
* BindTest is meant to be a security test (always runs with security
manager with explicit policy -- and tests except security exception).
I'm not sure we want to switch ff that
-Sundar
On 15/05/18, 5:23 PM, Maurizio Cimadamore wrote:
>
>
> On 15/05/18 12:50, Maurizio Cimadamore wrote:
>> 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/
> Wrong link
>
> here's the correct one:
>
> http://cr.openjdk.java.net/~mcimadamore/panama/lookup-bind-v2/
>
> Maurizio
>>
>> Cheers
>> Maurizio
>>
>
More information about the panama-dev
mailing list