Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 81036 invoked from network); 3 Aug 2006 13:02:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Aug 2006 13:02:36 -0000 Received: (qmail 7932 invoked by uid 500); 3 Aug 2006 13:02:36 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 7911 invoked by uid 500); 3 Aug 2006 13:02:35 -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 7900 invoked by uid 99); 3 Aug 2006 13:02:35 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Aug 2006 06:02:35 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Aug 2006 06:02:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C6489714204 for ; Thu, 3 Aug 2006 13:00:00 +0000 (GMT) Message-ID: <4127458.1154610000809.JavaMail.jira@brutus> Date: Thu, 3 Aug 2006 06:00:00 -0700 (PDT) From: "Victor Martynov (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Commented: (HARMONY-946) [classlib][luni] new Socket("0.0.0.0", 1099) on Windows throws exception In-Reply-To: <5451362.1153479914080.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-946?page=comments#action_12425513 ] Victor Martynov commented on HARMONY-946: ----------------------------------------- I checked the fix and it works fine. Thanks Alexey, Paulex. > [classlib][luni] new Socket("0.0.0.0", 1099) on Windows throws exception > ------------------------------------------------------------------------ > > Key: HARMONY-946 > URL: http://issues.apache.org/jira/browse/HARMONY-946 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: Windows XP, Apache Harmony DRLVM HEAD-4807 (2006-05-02), Windows/ia32/msvc 1310, debug > Reporter: Victor Martynov > Assigned To: Paulex Yang > Attachments: JIRA964.diff > > > The test below illustrates this problem: > ------------------------------------------------------------------- > import java.net.*; > public class Test { > public static void main(String args[]) throws Throwable { > ServerSocket ss = new ServerSocket(1099); > Socket s = new Socket("0.0.0.0 ", 1099); > } > } > ------------------------------------------------------------------- > The output on RI and on Harmony differs: > c:\test>java Test > c:\test>C:/Harmony/bin/ij Test > java.net.ConnectException: 0.0.0.0/0.0.0.0:1099 - The address is not available > at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:238) > at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) > at java.net.Socket.startupSocket(Socket.java:715) > at java.net.Socket.(Socket.java:139) > at Test.main(Test.java:7) > Moreover the results differ on Linux and Windows: > vamartyn@server:~> uname -a > Linux server 2.6.5-7.145lxset1-smp #1 SMP Thu Jan 27 09:19:29 UTC 2005 i686 > i686 i386 GNU/Linux > vamartyn@server:~> Harmony/bin/ij -version > Apache Harmony DRLVM HEAD-4807 (2006-05-02), Linux/ia32/gcc 3.3.4, debug > vamartyn@server:~> Harmony/bin/ij Test > vamartyn@server:~> java Test > vamartyn@server:~> > The address "0.0.0.0" is a valid address to connect, so it is a bug in luni.jar and it shows itself only on windows. -- 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