Closed
Bug 310482
Opened 19 years ago
Closed 19 years ago
Javascript compiler (JSC) is broken in rhino1_6R2
Categories
(Rhino Graveyard :: Compiler, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ericfu88, Assigned: igor)
Details
Attachments
(1 file)
974 bytes,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 Running the example in the documentation and got the following error. It works on previous versions. C:\Scripting\rhino1_6R2\test>java -classpath .;..\js.jar org.mozilla.javascript.tools.jsc.Main -extends ScriptIntf Script1.js Exception in thread "main" java.lang.IllegalStateException: Stack underflow: -1 at org.mozilla.classfile.ClassFileWriter.badStack(ClassFileWriter.java:1476) at org.mozilla.classfile.ClassFileWriter.add(ClassFileWriter.java:753) at org.mozilla.javascript.JavaAdapter.generateEmptyCtor(JavaAdapter.java:624) at org.mozilla.javascript.JavaAdapter.createAdapterCode(JavaAdapter.java:350) at org.mozilla.javascript.optimizer.ClassCompiler.compileToClassFiles(ClassCompiler.java:194) at org.mozilla.javascript.tools.jsc.Main.processSource(Main.java:267) at org.mozilla.javascript.tools.jsc.Main.main(Main.java:70) Reproducible: Always Steps to Reproduce: 1. java -classpath .;..\js.jar org.mozilla.javascript.tools.jsc.Main -extends ScriptIntf Script1.js Actual Results: Exception in thread "main" java.lang.IllegalStateException: Stack underflow: -1 at org.mozilla.classfile.ClassFileWriter.badStack(ClassFileWriter.java:1476) at org.mozilla.classfile.ClassFileWriter.add(ClassFileWriter.java:753) at org.mozilla.javascript.JavaAdapter.generateEmptyCtor(JavaAdapter.java:624) at org.mozilla.javascript.JavaAdapter.createAdapterCode(JavaAdapter.java:350) at org.mozilla.javascript.optimizer.ClassCompiler.compileToClassFiles(ClassCompiler.java:194) at org.mozilla.javascript.tools.jsc.Main.processSource(Main.java:267) at org.mozilla.javascript.tools.jsc.Main.main(Main.java:70) Expected Results: NO errors.
Assignee | ||
Comment 1•19 years ago
|
||
Assignee | ||
Comment 2•19 years ago
|
||
I committed the fix.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•