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 Wed, 23 Dec 2009 07:23:29 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.diff

This patch will make harmony's behavior same as RI's.

Just one more thing, I notice that there are two places in luni module to store messages:
[1]org/apache/harmony/luni/internalnls/messages.properties
[2]org/apache/harmony/luni/util/ExternalMessages.properties

Can anybody tell what is the difference between them?
Is there any rule I can follow to put the message in the right place?

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