[armedbear-devel] new jcall / jar:file: path functions

Alan Ruttenberg alanruttenberg at gmail.com
Thu Jan 7 17:48:27 UTC 2010


On Thu, Jan 7, 2010 at 11:37 AM, Alessio Stalla <alessiostalla at gmail.com> wrote:
> On Thu, Jan 7, 2010 at 4:32 PM, Alessio Stalla <alessiostalla at gmail.com> wrote:
>> On Thu, Jan 7, 2010 at 6:39 AM, Alan Ruttenberg
>> <alanruttenberg at gmail.com> wrote:
> At this point, we can either
>
> 1. ignore the problem,
> 2. always call setAccessible(true) before calling a method,
> 3. try to find the overridden method as up as possible in the class
> hierarchy before calling it, hoping to get at some point to a public
> class/interface
>
> 2. and 3. would make all method calls through jcall less efficient;
> however, we could enable one of those techniques only when some
> additional parameter is passed to jcall (e.g. the try-harder that was
> proposed some time ago for jfield).
>
> Bye,
> Ale
>

I believe that the code that jss uses a method cache and therefore
only needs to do the setAccessible call once. Have you looked at what
jsint.Invoke does or considered simply adopting it for ABCL?

http://jscheme.sourceforge.net/jscheme/doc/api/jsint/Invoke.html

-Alan




More information about the armedbear-devel mailing list