From commits-return-61374-apmail-harmony-commits-archive=harmony.apache.org@harmony.apache.org Mon Feb 08 07:41:52 2010 Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 44940 invoked from network); 8 Feb 2010 07:41:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Feb 2010 07:41:52 -0000 Received: (qmail 57486 invoked by uid 500); 8 Feb 2010 07:41:52 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 57442 invoked by uid 500); 8 Feb 2010 07:41:52 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 57433 invoked by uid 99); 8 Feb 2010 07:41:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Feb 2010 07:41:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Feb 2010 07:41:51 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 530D7234C4C5 for ; Sun, 7 Feb 2010 23:41:31 -0800 (PST) Message-ID: <1216074337.117081265614891339.JavaMail.jira@brutus.apache.org> Date: Mon, 8 Feb 2010 07:41:31 +0000 (UTC) From: "Hudson (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-6413) [java6][classlib][luni]DatagramSock do NOT throw IllegalArgumentException In-Reply-To: <1060571428.1261548209399.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HARMONY-6413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12830868#action_12830868 ] Hudson commented on HARMONY-6413: --------------------------------- Integrated in Harmony-1.5-head-linux-x86_64 #611 (See [http://hudson.zones.apache.org/hudson/job/Harmony-1.5-head-linux-x86_64/611/]) Apply patch for : [java6][classlib][luni]DatagramSock do NOT throw IllegalArgumentException Agreed with Ray, this patch could be also applied to Java5. > [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: 5.0M13 > > 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.(DatagramPacket.java:123) > at java.net.DatagramPacket.(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.