Subj : Re: limitation of Rhino evaluator To : netscape.public.mozilla.jseng From : Krokovay =?ISO-8859-2?Q?K=E1roly?= Date : Fri Nov 05 2004 09:51 am Igor, I tried it and the evaluatin was successfull, but when I called a function I got a null exception. My source: Object fRunStrat = scope.get(function_name, scope); if ((fRunStrat instanceof Function && fRunStrat !=null )) { Function fRS = (Function)fRunStrat; Object resultRS = fRS.call(cx, scope, scope, null); } Regards Károly 11/4/2004 -n, "Igor Bukanov" wrote: >Krokovay Károly wrote: > > Hi, > > I generated a very long java script string and I wanted to evaluate but I > > got the following exception. I think the Rhino engine generated a java > > class > > from my parsed javascript and put it everything in one method and if was > > to > > large (more than 65535 bytes). > > Is it a strict limit of the Rhino or can it be avoid? > >You can avoid that by using pure interpreter mode, just call >cx.setOptimizationLevel(-1) before you compile/evaluate scripts. > >Regards, Igor >_______________________________________________ >mozilla-jseng mailing list >mozilla-jseng@mozilla.org >http://mail.mozilla.org/listinfo/mozilla-jseng .