Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 66660 invoked from network); 20 Jul 2006 11:35:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jul 2006 11:35:27 -0000 Received: (qmail 739 invoked by uid 500); 20 Jul 2006 11:35:23 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 638 invoked by uid 500); 20 Jul 2006 11:35:23 -0000 Mailing-List: contact harmony-dev-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-dev@incubator.apache.org Received: (qmail 627 invoked by uid 99); 20 Jul 2006 11:35:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jul 2006 04:35:23 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of victor.martynov@gmail.com designates 64.233.182.185 as permitted sender) Received: from [64.233.182.185] (HELO nf-out-0910.google.com) (64.233.182.185) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jul 2006 04:35:20 -0700 Received: by nf-out-0910.google.com with SMTP id y25so525452nfb for ; Thu, 20 Jul 2006 04:34:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=QnUPr0TiTUQv3BgKHbLIVgIRfLqQb9as0WhvuhW+xId8RwrBJlS/Zlz4bNC+gx/smIfuzrKPYd/MIxfnhwlj1C0rIa0Ejf37FYP5sKozfUz1XvqqUPIqgBx+/t+ELKaqwQ4UcsQCVvuxmc+uRp0PS1+L1ooMG0UICEcpxgRcebg= Received: by 10.78.159.7 with SMTP id h7mr273154hue; Thu, 20 Jul 2006 04:34:58 -0700 (PDT) Received: by 10.78.120.7 with HTTP; Thu, 20 Jul 2006 04:34:58 -0700 (PDT) Message-ID: Date: Thu, 20 Jul 2006 15:34:58 +0400 From: "Victor A Martynov" To: harmony-dev@incubator.apache.org Subject: [classlib] Uncertain behavior of new Socket("0.0.0.0", 1099); MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_57416_17500570.1153395298489" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_57416_17500570.1153395298489 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, I'm having trouble with an application. This problem concerns creating java.net.Socket on host "0.0.0.0". 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) I wonder whether it is a bug in RI or a bug in LUNI of Harmony? ===== Warm Regards, Victor Martynov, Intel Middleware Product Division ------=_Part_57416_17500570.1153395298489--