United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4332687 : ObjectStreamField.getType() incompletely specified

Details
Type:
Bug
Submit Date:
2000-04-24
Status:
Resolved
Updated Date:
2004-09-21
Project Name:
JDK
Resolved Date:
2004-09-21
Component:
core-libs
OS:
generic
Sub-Component:
java.io:serialization
CPU:
generic
Priority:
P5
Resolution:
Fixed
Affected Versions:
1.3.0,5.0
Fixed Versions:
5.0 (tiger)

Related Reports

Sub Tasks

Description
The current specification for ObjectStreamField.getType() consists of a single
sentence: "Get the type of the field".  This does not specify what should be
returned if the field's type doesn't exist in the local VM (the code currently
returns Object.class whenever it doesn't know what the field's type is).  The
specification should be updated to be more specific: one possibility would be
to have getType() return null if the field doesn't have a local class.

                                    

Comments
EVALUATION

Serialization spec should be updated to describe current behavior.

###@###.### 2002-03-07
                                     
2002-03-07
SUGGESTED FIX

Specify ObjectStreamField.getType() to return null when the field's class
doesn't exist in the local VM.
                                     
2004-09-22
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger

FIXED IN:
tiger

INTEGRATED IN:
tiger
tiger-b16

VERIFIED IN:
1.5.0_01


                                     
2004-09-22



Hardware and Software, Engineered to Work Together