You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Richard Liang (JIRA)" <ji...@apache.org> on 2006/06/07 11:19:30 UTC
[jira] Updated: (HARMONY-568) Bug in java.net.InetSocketAddress
serialization
[ http://issues.apache.org/jira/browse/HARMONY-568?page=all ]
Richard Liang updated HARMONY-568:
----------------------------------
Attachment: Harmony568.zip
Hello,
Please try the patch. Thanks a lot.
1) Unzip the attachment to modules/luni
2) apply patch 01.Harmony568.diff
3) execute the script: 02.filescopy.sh
Best regards,
Richard.
> Bug in java.net.InetSocketAddress serialization
> -----------------------------------------------
>
> Key: HARMONY-568
> URL: http://issues.apache.org/jira/browse/HARMONY-568
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Richard Liang
> Attachments: Harmony568.zip
>
> java.net.InetSocketAddress is not serializable if created by createUnresolved(String,int). To fix this bug, it should modify several methods related.
> The following test case passes on RI 5.0 but fails on Harmony
> public void testSerialization_unresolved() throws Exception {
> InetSocketAddress ia= InetSocketAddress.createUnresolved("badhost",1000);
> InetSocketAddress deIA = (InetSocketAddress) SerializationTester
> .getDeserilizedObject(ia);
> assertEquals(ia.getHostName(),deIA.getHostName());
> assertEquals(ia.getPort(), deIA.getPort());
> assertEquals(ia.getAddress(), deIA.getAddress());
> }
--
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