Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 58773 invoked from network); 28 Sep 2006 08:34:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Sep 2006 08:34:56 -0000 Received: (qmail 92878 invoked by uid 500); 28 Sep 2006 08:34:55 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 92853 invoked by uid 500); 28 Sep 2006 08:34:55 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 92842 invoked by uid 99); 28 Sep 2006 08:34:55 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Sep 2006 01:34:55 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [209.237.227.198] ([209.237.227.198:50109] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id F7/FB-05478-C298B154 for ; Thu, 28 Sep 2006 01:34:53 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C3A8E7141F4 for ; Thu, 28 Sep 2006 08:30:55 +0000 (GMT) Message-ID: <19311464.1159432255799.JavaMail.jira@brutus> Date: Thu, 28 Sep 2006 01:30:55 -0700 (PDT) From: "Paulex Yang (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Closed: (HARMONY-894) [classlib][net] java.net.DatagramSocket(null).getBroadcast() returns different values for harmony vs RI In-Reply-To: <28435040.1153130653903.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-894?page=all ] Paulex Yang closed HARMONY-894. ------------------------------- Verified by Vladimir. > [classlib][net] java.net.DatagramSocket(null).getBroadcast() returns different values for harmony vs RI > -------------------------------------------------------------------------------------------------------- > > Key: HARMONY-894 > URL: http://issues.apache.org/jira/browse/HARMONY-894 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Vladimir Ivanov > Assigned To: Paulex Yang > Attachments: 894.diff, DatagramSocket.patch > > > The Harmony method DatagramSocket.getBroadcast() returns false while RI returns true. > ================== test.java ===================== > import java.net.*; > public class test { > public static void main (String[] args) { > try { > System.out.println("getBroadcast()1 = " + new DatagramSocket().getBroadcast()); > } catch (Exception e) { > e.printStackTrace(); > } > try { > System.out.println("getBroadcast()2 = " + new DatagramSocket((SocketAddress) null).getBroadcast()); > } catch (Exception e) { > e.printStackTrace(); > } > } > } > ============================================== > Output: > C:\tmp\tmp17>C:\jdk1.5.0_06\bin\java.exe -cp . -showversion test > java version "1.5.0_06" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) > Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode) > getBroadcast()1 = true > getBroadcast()2 = true > C:\tmp\tmp17>C:\harmony\trunk_0427\deploy\jdk\jre\bin\java.exe -cp . -showversion test > java version 1.5 (subset) > (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable. > getBroadcast()1 = true > getBroadcast()2 = false -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira