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
- ignore the problem,
- always call setAccessible(true) before calling a method,
- 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
- 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