You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2006/06/12 23:21:33 UTC

[jira] Resolved: (HARMONY-568) Bug in java.net.InetSocketAddress serialization

     [ http://issues.apache.org/jira/browse/HARMONY-568?page=all ]
     
Tim Ellison resolved HARMONY-568:
---------------------------------

    Resolution: Fixed

Thanks Richard,

Patch applied to LUNI module at repo revision 413745.

Please check that it was applied as you expected.


> 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
>     Assignee: Tim Ellison
>  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