Subj : Rhino 1_6R1: bad class generated when using Ref To : netscape.public.mozilla.jseng From : Mike C. Date : Sun Jul 03 2005 12:14 am Hi, I am trying to use the new refGet/refSet features in 1_6R1, but I get an error when trying to load the generated class. Example: // file rassign.js Session("foo") = "bar"; ------------------------- java -cp js.jar org.mozilla.javascript.tools.jsc.Main rassign.js java -cp .;js.jar rassign Exception in thread "main" java.lang.VerifyError: (class: rassign, method: _c0 s ignature: (Lrassign;Lorg/mozilla/javascript/Context;Lorg/mozilla/javascript/Scri ptable;Lorg/mozilla/javascript/Scriptable;[Ljava/lang/Object;)Ljava/lang/Obj ect; ) Incompatible argument to function ------------------------- If I decompile the generated class and I recompile it with Sun's javac (after converting the DUP instructions in the function exec() to a Java accepted call), the class gets loaded correctly. Tested with JRE 1.4.2 and 1.5. .