-
Bug
-
Resolution: Fixed
-
P2
-
1.2.0
-
1.2beta4
-
x86, sparc
-
solaris_2.5, solaris_2.6, windows_nt
-
Not verified
Frames can no longer be serialized because a new field: "private SoftReference
softThis" was added to the class, but SoftReferences are not Serializable.
Attempting to serialize a Frame now throws an Exception.
Since "softThis" should be reset when the Frame is deserialized anyways, this
field should be made transient.
In addition, Frame.readObject() should be modified to give "softThis" a valid
value before calling addToFrameList(). Otherwise, null will be inserted into
the list, causing a NullPointerException when getFrames() is called.
softThis" was added to the class, but SoftReferences are not Serializable.
Attempting to serialize a Frame now throws an Exception.
Since "softThis" should be reset when the Frame is deserialized anyways, this
field should be made transient.
In addition, Frame.readObject() should be modified to give "softThis" a valid
value before calling addToFrameList(). Otherwise, null will be inserted into
the list, causing a NullPointerException when getFrames() is called.
- duplicates
-
JDK-4144257 java.awt.Frame fails to be serialized in jdk1.2beta4
-
- Closed
-
-
JDK-4146303 JDK1.2Beta4-I:Serialization bug on JFrame
-
- Closed
-