![](https://secure.gravatar.com/avatar/1acb146697fe261dc4e0c1c04f7508ec.jpg?s=120&d=mm&r=g)
On Thu, Jan 7, 2010 at 11:37 AM, Alessio Stalla <alessiostalla@gmail.com> wrote:
On Thu, Jan 7, 2010 at 4:32 PM, Alessio Stalla <alessiostalla@gmail.com> wrote:
On Thu, Jan 7, 2010 at 6:39 AM, Alan Ruttenberg <alanruttenberg@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