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/02 03:44:18 UTC
[jira] Updated: (HARMONY-6413) [java6][classlib][luni]DatagramSock
do NOT throw IllegalArgumentException
[ 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.