JSObject and delegation to other java classes
Marc Downie
marc at openendedgroup.com
Mon Jul 21 18:27:10 UTC 2014
On Mon, Jul 21, 2014 at 10:52 AM, A. Sundararajan <
sundararajan.athijegannathan at oracle.com> wrote:
> You can't "take" java method away from object and then "apply" it later
> (like you do with Java reflection).
Understood. But this statement is only half true — you *can* take a java
method away from an object. It's just that once you have it the only thing
you can do with it (that I've found) is check that it's typeof 'function',
upon which it lies to you.
Anyway, confusions and expectations I'm all set now with what I need from
the Nashorn/Java interface for now. Many thanks for all of your help.
Marc.
More information about the nashorn-dev
mailing list