DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=43133>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43133 Summary: wrapping java objects which are passed to BSF call method in javascript engine Product: BSF Version: unspecified Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: framework AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] The BSF 2.4.0 javascript engine does not wrap the arguments that are passed in to the call method. This means for example that in javascript the argument objects will not be "==" to the same object if it is retrieved through live connect. This can be fixed by using the context.getWrapFactory().wrap method. So adding the following code to the JavaScriptEngine fixes this: // need to wrap the passed in objects the same as if they were handled by live connect if(args != null){ WrapFactory wrapFactory = cx.getWrapFactory(); for(int i=0; i<args.length; i++){ args[i] = wrapFactory.wrap(cx, global, args[i], null); } } -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
