cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Context.javaToJS
Date Wed, 11 May 2005 11:15:47 GMT
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                                      lgawron@mobilebox.pl
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

Mime
View raw message