Are there any side effects for changing the implementation of
FOM_Cocoon.jsFunction_setupObject from:

public Object jsFunction_setupObject(Object obj) throws Exception {
    LifecycleHelper.setupComponent(
         unwrap(obj),
         this.getLogger(),
         this.getAvalonContext(),
         this.getServiceManager(),
         null,// configuration
         true);
     return obj;
}

to:

public Object jsFunction_setupObject(Object obj) throws Exception {
    LifecycleHelper.setupComponent(
         unwrap(obj),
         this.getLogger(),
         this.getAvalonContext(),
         this.getServiceManager(),
         null,// configuration
         true);
     return org.mozilla.javascript.Context.javaToJS(obj, getParentScope());
}
this fix stops Rhino nagging about naked java object sent to flowscript.

Can I commit?

--
Leszek Gawron                                      [EMAIL PROTECTED]
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

Reply via email to