harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Liang <richard.lian...@gmail.com>
Subject Re: [jira] Commented: (HARMONY-592) java.lang.Enum does not deserialize correctly
Date Tue, 13 Jun 2006 13:56:04 GMT
Tim Ellison wrote:
> Richard Liang (JIRA) wrote:
>   
>> Hello Tim,
>>
>> The patch still cannot pass the provided test case. :-) So Please apply my patch.
>>
>> According to Java Spec 1.5,  
>> "Enum constants are serialized differently than ordinary serializable or externalizable
objects. .... 
>>
>> To deserialize an enum constant, ObjectInputStream reads the constant name from the
stream; the deserialized constant is then obtained by calling the java.lang.Enum.valueOf method,
passing the constant's enum type along with the received constant name as arguments.
>> ...
>>
>> all enum types have a fixed serialVersionUID of 0L. ....
>> "
>>     
>
> Where abouts did you find that text?  I'm looking at the javadoc.
>
>   
Hello Tim,

Please find it at 
http://java.sun.com/j2se/1.5.0/docs/guide/serialization/spec/serial-arch.html#6469

Thanks a lot.
> Regards,
> Tim
>
>   

-- 
Richard Liang
China Software Development Lab, IBM 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message