Ticket #6449 (closed defect: fixed)

Bug contains 1 commit(s) | SVN Diffs for #6449

 

Opened 6 months ago

Last modified 3 months ago

Serialization problem in ICU4J DecimalFormat

Reported by: yoshito Assigned to: yoshito
Priority: major Milestone: 4.1.1
Component: formatting Version: Current
Keywords: Cc:
Load: Xref: 4554
Java Version: Operating System:
Project (C/J): ICU4J Weeks: 0.1
Review: doug

Description

ICU4J DecimalFormat has a private field - private ArrayList attributes. This field is only used by formatToCharacterIterator for storing NumberFormat.Field and positions. Once formatToCharacterIterator is called, the contents of the list remains until the next call. When the default serialization code processes the ArrayList, it triggers java.io.NotSerializableException when the list is not empty. This is because java.text.Format.Field is not a Serializable.

Attachments

Change History

07/18/08 10:00:49 changed by yoshito

  • revw set to doug.
  • milestone changed from 4.2 to 4.1.1.

08/27/08 12:00:17 changed by doug

In formatTests line 1113, why you you delcare the variable aci at all? Would be simpler just to let the result of the call drop on the floor.

09/30/08 12:53:48 changed by doug

  • status changed from new to closed.
  • resolution set to fixed.

Add/Change #6449 (Serialization problem in ICU4J DecimalFormat)




Anti spam check: