harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ray Chen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-6413) [java6][classlib][luni]DatagramSock do NOT throw IllegalArgumentException
Date Tue, 02 Feb 2010 02:44:18 GMT

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

Ray Chen updated HARMONY-6413:
------------------------------

    Attachment: Harmony-6413_v2.diff

Patch version 2 fixed the bug in the test, also added one test for this issue. 

Test passed on RI version:
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)

> [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
>         Attachments: Harmony-6413.diff, Harmony-6413_v2.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