[ http://jira.andromda.org/browse/JAVA-30?page=all ]
     
Wouter Zoons closed JAVA-30:
----------------------------

    Resolution: Fixed

> serializable enums/singletons should implement readResolve
> ----------------------------------------------------------
>
>          Key: JAVA-30
>          URL: http://jira.andromda.org/browse/JAVA-30
>      Project: Java Cartridge
>         Type: Improvement

>     Reporter: Wouter Zoons
>     Assignee: Wouter Zoons

>
> readResolve() is a custom serialization support method that can be 
> implemented on singletons to consistently return the same reference after 
> serialization, this way enums can even be compared using the equality operator
> this suggestion is mentioned in the Java Puzzlers book [Bloch/Gafter] and 
> other sources

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.andromda.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Reply via email to