harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Liang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-568) Bug in java.net.InetSocketAddress serialization
Date Tue, 13 Jun 2006 06:34:30 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-568?page=comments#action_12415958 ] 

Richard Liang commented on HARMONY-568:
---------------------------------------

Hello Tim,

The fix looks fine. Thanks a lot.

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
>     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


Mime
View raw message