From df4f20ed0ac48e3f446dbcf8de1d90b0ca3969c0 Mon Sep 17 00:00:00 2001 From: "nboyd%atg.com" Date: Thu, 27 Sep 2001 15:14:24 +0000 Subject: [PATCH] Remove obsolete comment about serialization. git-svn-id: svn://10.0.0.236/trunk@103945 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/js/rhino/docs/faq.html | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/mozilla/js/rhino/docs/faq.html b/mozilla/js/rhino/docs/faq.html index 60e34292e88..784eb7c24b0 100644 --- a/mozilla/js/rhino/docs/faq.html +++ b/mozilla/js/rhino/docs/faq.html @@ -43,27 +43,6 @@ I get the exception Required security context missing. What's going on?

A. You've likely missed placing the Security.properties file in your class path at org.mozilla.javascript.resources. -

Q. Is it possible to make Rhino classes -serializable? -

A. A number of people have asked about making -Rhino data serializable. It certainly seems like it would be useful for -a variety of applications. -

The reason I haven't implemented Serializiable has been that java.lang.Class -is not Serializable, so any functions or scripts that have been compiled -to Java bytecodes can't be serialized. One Rhino embedder suggested that -we could get around this restriction by actually saving the bytecode in -a byte array and then having some mechanism for loading those bytes at -the destination. That would work, but is an extra mechanism beyond standard -serialization and imposes a significant space overhead on all users of -compiled scripts. I'm also curious as to whether that mechanism would be -any faster than simply recompiling from the script source, which would -be significantly smaller than the serialized form. -

It'd be great to have some solutions to the serialization problem, and -I'd certainly be happy to roll changes back into Rhino. -

Perhaps the best solution is to implement some serialization for Rhino's -interpretive mode and assume for Rhino's compiled mode that the class has -also been compiled on the receiving end (which is the assumption Java makes). -