Review request JDK-8006562: findOwnMH in nashorn "objects" package should be cleaned up
A. Sundararajan
sundararajan.athijegannathan at oracle.com
Fri Jan 18 04:23:30 PST 2013
MethodHandles.lookup() to resolve 'private' methods of caller can not be
passed across class loaders. "objects" package classes are loaded by a
different loader and so MethodHandleFactory (runtime) class can not make
use of "own" lookups and resolve private methods as method handles.
So to create method handles of public methods, we use MH and
publicLookup. We use direct jsr292 API call to create method handles on
private methods.
-Sundar
On Friday 18 January 2013 05:50 PM, Marcus Lagergren wrote:
> +1 after explanations about public scope of MethodHandle lookup by Sundar.
>
> On Jan 18, 2013, at 1:14 PM, A. Sundararajan <sundararajan.athijegannathan at oracle.com> wrote:
>
>> Hi,
>>
>> Please review JDK-8006562: findOwnMH in nashorn "objects" package should be cleaned up
>>
>> Thanks
>> -Sundar
More information about the nashorn-dev
mailing list