You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Leszek Gawron <lg...@mobilebox.pl> on 2005/02/22 17:14:07 UTC
rhino warning
RHINO USAGE WARNING: Missed Context.javaToJS() conversion:
Rhino runtime detected object
com.mobilebox.cocoon.components.SpringApplicationContextFetcher@1352447
of class com.mobilebox.
cocoon.components.SpringApplicationContextFetcher where it expected
String, Number, Boolean or Scriptable instance. Please ch
eck your code for missig Context.javaToJS() call.
can it be disabled somehow? or even better - is there a possibility of
implementing some kind of interceptor so I do not mess my code with
statements like:
public ApplicationContext fetchContext() { return context };
public Scriptable fetchScriptableContext() {
return Context.javaToJS( fetchContext() );
}
?
--
Leszek Gawron lgawron@mobilebox.pl
Project 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
Re: rhino warning
Posted by oceatoon <t....@systheo.com>.
Leszek Gawron wrote:
> RHINO USAGE WARNING: Missed Context.javaToJS() conversion:
> Rhino runtime detected object
> com.mobilebox.cocoon.components.SpringApplicationContextFetcher@1352447
> of class com.mobilebox.
> cocoon.components.SpringApplicationContextFetcher where it expected
> String, Number, Boolean or Scriptable instance. Please ch
> eck your code for missig Context.javaToJS() call.
>
> can it be disabled somehow? or even better - is there a possibility of
> implementing some kind of interceptor so I do not mess my code with
> statements like:
>
> public ApplicationContext fetchContext() { return context };
> public Scriptable fetchScriptableContext() {
> return Context.javaToJS( fetchContext() );
> }
>
> ?
I agree this warning comes up frequently when objects are tested if null.
But I don't understand why though?
Thanks
Tibor