Closed
Bug 290096
Opened 20 years ago
Closed 20 years ago
deserialize function exception java.lang.ClassNotFoundException org.mozilla.javascript.gen.c1 1.6 version
Categories
(Rhino Graveyard :: Core, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: wesley.marques, Assigned: igor)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.7.6) Gecko/20050318 Firefox/1.0.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.7.6) Gecko/20050318 Firefox/1.0.2
Using deserialize function throws a java.lang.ClassNotFoundException
org.mozilla.javascript.gen.c1. in Rhino´s 1.6 version, Windows XP
Example:
function Classe(){
this.name = "classius"
}
var o = new Classe()
serialize(o,"o.ser");
var f = deserialize("o.ser");<==PROBLEM
print(f.name);
Reproducible: Always
Steps to Reproduce:
1.write a script
2.Execute script running org.mozilla.javascript.tools.shell.Main
3.Error in deserialize function
Actual Results:
The interpreter stops| Assignee | ||
Comment 1•20 years ago
|
||
To serialize functions you have to use the interpreter mode in Rhino. Use Context.setOptimizationLevel(-1) or pass -opt -1 as argument to the shell invocation.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Summary: deserialize function exception java.lang.ClassNotFoundException org.mozilla.javascript.gen.c1 1.6 version → deserialize function exception java.lang.ClassNotFoundException org.mozilla.javascript.gen.c1 1.6 version
You need to log in
before you can comment on or make changes to this bug.
Description
•