harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulex Yang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-346) java.text.DecimalFormat serialization is to be implemented
Date Tue, 18 Apr 2006 07:00:20 GMT
    [ 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


Mime
View raw message