Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RHINO USAGE WARNING: Missed Context.javaToJS() conversion:

133 views
Skip to first unread message

Daryl Stultz

unread,
Dec 30, 2009, 12:32:50 PM12/30/09
to Rhino JS User List
Hello, I have the following code:

function myFunction(object1) {
var object2 = object1;
object2 == object1;
}

That produces this warning:

RHINO USAGE WARNING: Missed Context.javaToJS() conversion:

Rhino runtime detected object Foo@eb2f0 of class Foo where it expected
String, Number, Boolean or Scriptable instance. Please check your code for
missing Context.javaToJS() call.

Anyone know what I'm supposed to do? object1 and object2 are Foo classes, of
course, wrapped to be Scriptable.

Thanks.

--
Daryl Stultz
_____________________________________
6 Degrees Software and Consulting, Inc.
http://www.6degrees.com
mailto:da...@6degrees.com

0 new messages