harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Regis Xu (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-6413) [java6][classlib][luni]DatagramSock do NOT throw IllegalArgumentException
Date Mon, 08 Feb 2010 07:11:28 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-6413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Regis Xu resolved HARMONY-6413.
-------------------------------

    Resolution: Fixed

Thanks Ray, patch was applied at java5 trunk r907563, please verify.

> [java6][classlib][luni]DatagramSock do NOT throw IllegalArgumentException
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-6413
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6413
>             Project: Harmony
>          Issue Type: Sub-task
>          Components: Classlib
>            Reporter: Ray Chen
>            Assignee: Regis Xu
>             Fix For: 6.0M1
>
>         Attachments: Harmony-6413.diff, Harmony-6413_v2.diff, Harmony-6413_v3.diff
>
>
> Run following simple test case, got different results from RI:
> public static void main(String[] args) throws SocketException, IOException {
>        InetSocketAddress sa = InetSocketAddress.createUnresolved("localhost",0);
>        new DatagramSocket().send(new DatagramPacket(new byte[272], 3, sa));
> }
> RI 6:
> Exception in thread "main" java.lang.IllegalArgumentException: unresolved address
>        at java.net.DatagramPacket.setSocketAddress(DatagramPacket.java:295)
>        at java.net.DatagramPacket.<init>(DatagramPacket.java:123)
>        at java.net.DatagramPacket.<init>(DatagramPacket.java:158)
>        at DST2.main(DST2.java:10)
> Harmony 6:  No Exception

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message