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.