JDK-4332687 : ObjectStreamField.getType() incompletely specified
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.io:serialization
  • Affected Version: 1.3.0,5.0
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2000-04-24
  • Updated: 2017-05-16
  • Resolved: 2004-09-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
Other
5.0 tigerFixed
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
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

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

EVALUATION Serialization spec should be updated to describe current behavior. ###@###.### 2002-03-07
2002-03-07