You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Paulex Yang (JIRA)" <ji...@apache.org> on 2006/04/18 09:00:20 UTC
[jira] Commented: (HARMONY-346) java.text.DecimalFormat
serialization is to be implemented
[ http://issues.apache.org/jira/browse/HARMONY-346?page=comments#action_12374861 ]
Paulex Yang commented on HARMONY-346:
-------------------------------------
Here goes the testcase to reproduce the bug:
public void test_serialization() {
DecimalFormat decimalFormat = new DecimalFormat();
try {
// serialize
ByteArrayOutputStream byteOStream = new ByteArrayOutputStream();
ObjectOutputStream objectOStream = new ObjectOutputStream(
byteOStream);
objectOStream.writeObject(decimalFormat);
// and deserialize
ObjectInputStream objectIStream = new ObjectInputStream(
new ByteArrayInputStream(byteOStream.toByteArray()));
objectIStream
.readObject();
} catch (Exception e1) {
fail("Errors occur during serialization");
}
}
RI: pass, Harmony, NotYetImplementedException thrown
> java.text.DecimalFormat serialization is to be implemented
> ----------------------------------------------------------
>
> Key: HARMONY-346
> URL: http://issues.apache.org/jira/browse/HARMONY-346
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Paulex Yang
>
> Java 5 spec redefins DecimalFormat serialization form, meanwhile DecimalFormat wraps ICU now. So the serialization related methods readObject/writeObject needs to be reimplemented. I'll attach the testcase and related resource.
--
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