You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ray Chen (JIRA)" <ji...@apache.org> on 2010/02/08 08:29:28 UTC

[jira] Closed: (HARMONY-6412) [classlib][luni]DatagramSock do NOT throw Exception

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

Ray Chen closed HARMONY-6412.
-----------------------------


see 6413

> [classlib][luni]DatagramSock do NOT throw Exception
> ---------------------------------------------------
>
>                 Key: HARMONY-6412
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6412
>             Project: Harmony
>          Issue Type: Sub-task
>          Components: Classlib
>            Reporter: Ray Chen
>             Fix For: 5.0M13
>
>         Attachments: Harmony-6412-v2.diff, Harmony-6412.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 5:
> Exception in thread "main" java.lang.NullPointerException: null address || null buffer
>        at java.net.PlainDatagramSocketImpl.send(Native Method)
>        at java.net.DatagramSocket.send(DatagramSocket.java:612)
>        at DST2.main(DST2.java:10)
> Harmony :   No Exception

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