JSObjectLinker questions
Attila Szegedi
attila.szegedi at oracle.com
Tue Apr 16 06:20:12 PDT 2013
I'd suggest you just assemble your own DynamicLinker using your own factory; probably just put "new NashornLinker()" into the list of prioritized linkers and nothing else (you probably don't need the other linkers in Nashorn's internal prioritized linker list - they're only needed when linking call sites in a JavaScript program).
Then you can have your own bootstrap() and createDynamicInvoker() calls that delegate to your own DynamicLinker.
Attila.
On Apr 16, 2013, at 3:08 PM, Peter Zhelezniakov <Peter.Zhelezniakov at oracle.com> wrote:
> Hi all,
>
> Is there a way to disable JSObjectLinker in Nashorn? I'd like NashornLinker to link instances of JSObject.
>
> Looking at Bootstrap.java, linkers seem hardcoded:
>
> factory.setPrioritizedLinkers(new NashornLinker(), new NashornPrimitiveLinker(), new NashornStaticClassLinker(),
> new JSObjectLinker(), new ReflectionCheckLinker());
>
> From this line I'd expect NashornLinker to take priority over JSObjectLinker. That doesn't happen however. Is there any chance I can tweak those priorities?
>
> Thanks!
> --
> Peter
More information about the nashorn-dev
mailing list