United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4838379 Need custom support for serializing enum types
JDK-4838379 : Need custom support for serializing enum types

Details
Type:
Enhancement
Submit Date:
2003-03-27
Status:
Resolved
Updated Date:
2003-09-05
Project Name:
JDK
Resolved Date:
2003-09-05
Component:
core-libs
OS:
solaris_8
Sub-Component:
java.io:serialization
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:
5.0 (tiger)

Related Reports

Sub Tasks

Description
Enumerated types require special serialization support.

                                    

Comments
EVALUATION

Strictly speaking we don't "need" custom support for serializing enum types:
the compiler could simply emit an appropriate readObject method.  This
approach, however, has several disadvantages: (1) It would place a fair 
amount of unnecessary code in the class files. (2) The details will have to
be spelled out to ensure consistency among compilers. (3) The resulting
serialized form would be inefficient in space and time; it would contain a
meaningless serial version UID and would construct and discard a "garbage
object" each time an enum constant was deserialized.  Therefore, it seems
reasonable to add "first class" serialization support for enum types, as was
done for strings and arrays.

###@###.### 2003-03-31
                                     
2003-03-31
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger

FIXED IN:
tiger

INTEGRATED IN:
tiger
tiger-b19


                                     
2004-06-14



Hardware and Software, Engineered to Work Together