[ http://issues.apache.org/jira/browse/LANG-303?page=all ]
Henri Yandell closed LANG-303.
------------------------------
Resolution: Fixed
svn ci -m "Applying test for #LANG-303, and a fix. " src/
Sending src/java/org/apache/commons/lang/time/FastDateFormat.java
Sending src/test/org/apache/commons/lang/time/FastDateFormatTest.java
Transmitting file data ..
Committed revision 490387.
mRules and mMaxLengthEstimate have been made transient as the init() method
sets both of them up.
The deserialize method is:
+ // Serializing
+ //-----------------------------------------------------------------------
+ private void readObject(ObjectInputStream in) throws IOException,
ClassNotFoundException {
+ in.defaultReadObject();
+ init();
+ }
> FastDateFormat.mRules is not transient or serializable
> ------------------------------------------------------
>
> Key: LANG-303
> URL: http://issues.apache.org/jira/browse/LANG-303
> Project: Commons Lang
> Issue Type: Bug
> Affects Versions: 2.2
> Reporter: Henri Yandell
> Fix For: 2.3
>
>
> Reported by FindBugs.
> Either we need to make the Rule interface Serializable, or make mRules
> transient and add deserializing code to kick off init().
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]