Hello folks,

I am using Rhino 1_7R3pre CVS (also 1_7R2) with Java 1.6.

In order to preserve and later restore an entire JS scope, I use
serialization:
first I serialize the given scope and then I deserialize it obtaining
a duplicate of that scope.

The problem is that I always receive an OptionaDataException during
deserialization.

It seems to me that some kind of bug is present in the following
methods:

ScriptableObject.readObject
ScriptableObject.writeObject
ScriptableObject.accessSlot

I cannot post my code but:

1- accessSlot increments the field "count" without putting any slot to
the field "slots".
2- writeObject serializes less than "count" slots.
3- readObject attempts to deserializes more than the serialized slots
(ScriptableObject.java:2924)

That is, in serialization, "count" (objectsCount) and "slots.length"
seem to contain the same information.

Am I wrong?

Any suggestion to get rid of this?

Thanks in advance.

Claudio destro
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to