Subj : Problem using rhino under java To : netscape.public.mozilla.jseng From : Danilo Date : Tue May 04 2004 11:44 am Hi, I have this problem: JAVA: class one{ public Integer ret(){ return new Integer(12); } } Context cx = Context.enter(); try { Scriptable scope = cx.initStandardObjects(); one o = new one(); Scriptable jsarg = Context.toObject(o,scope); scope.put("o",scope,jsarg); s= try { Object result = cx.evaluateString(scope, s, "", 1, null); }catch (JavaScriptException ex) { } catch (Exception ee){ } } catch (Exception ee){ } finally { cx.exit(); } JAVASCRIPT var x=3 x= x + o.ret() the problem is that x value is "312" instead of 15. why interpreted o.ret() as String instead of Integer? tnk and sorry for my English -- .