Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 36232 invoked from network); 8 Feb 2010 07:11:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Feb 2010 07:11:51 -0000 Received: (qmail 27694 invoked by uid 500); 8 Feb 2010 07:11:51 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 27628 invoked by uid 500); 8 Feb 2010 07:11:51 -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 27619 invoked by uid 99); 8 Feb 2010 07:11:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Feb 2010 07:11:51 +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:11:49 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2200229A001A for ; Sun, 7 Feb 2010 23:11:28 -0800 (PST) Message-ID: <1927570893.115851265613088137.JavaMail.jira@brutus.apache.org> Date: Mon, 8 Feb 2010 07:11:28 +0000 (UTC) From: "Regis Xu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (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 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Regis Xu updated HARMONY-6413: ------------------------------ Fix Version/s: (was: 6.0M1) 5.0M13 > [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.