Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 54188 invoked from network); 23 Jan 2009 11:45:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jan 2009 11:45:06 -0000 Received: (qmail 73014 invoked by uid 500); 23 Jan 2009 11:45:03 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 72959 invoked by uid 500); 23 Jan 2009 11:45:02 -0000 Mailing-List: contact dev-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 dev@harmony.apache.org Received: (qmail 72948 invoked by uid 99); 23 Jan 2009 11:45:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jan 2009 03:45:02 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of xu.regis@gmail.com designates 74.125.46.158 as permitted sender) Received: from [74.125.46.158] (HELO yw-out-1718.google.com) (74.125.46.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jan 2009 11:44:54 +0000 Received: by yw-out-1718.google.com with SMTP id 5so1939085ywr.0 for ; Fri, 23 Jan 2009 03:44:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=nI1YKAqNMvon3i2le2ZvC7dTTqrgq34WCdDKFUA7iso=; b=ZjDgrgKKulTIJ0LcYj/VYbUydYv+5vcx+EbhfWp/uOM6WwabcjibSD72uVzs7acNy3 2yWJ7897wQY5fdbDUPmChJ312ZzWnavCuuEuEygFe7CcLsKhlaZDSimsKcr2utcCnNwF PRyAWQ+P+cUruoFrfIGad5BhbGBgcR1Q6AaJ8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=xb0nLDAJ9QqHaE5WS7sJ9DRenB/0AgG6LCJwR7GiQaQoz2DEcAs5FFLQMK6AZOXCOW 0vEUOM7HyTWgwRYd3qbNDw6smAU+CMvj/xxuuDtNxKrYYp0tn/3MayqhqRz5PnHagBOg c2jARUTcTcvK5A5zFVItpiAUD5Sm+WA+OQysg= Received: by 10.151.27.15 with SMTP id e15mr1149927ybj.37.1232711073469; Fri, 23 Jan 2009 03:44:33 -0800 (PST) Received: from ?9.123.233.47? ([220.248.0.145]) by mx.google.com with ESMTPS id j41sm22961465rne.1.2009.01.23.03.44.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 23 Jan 2009 03:44:32 -0800 (PST) Message-ID: <4979AD9B.4070903@gmail.com> Date: Fri, 23 Jan 2009 19:44:27 +0800 From: Regis User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: dev@harmony.apache.org Subject: [classlib][luni] ServerSocketTest.test_setReuseAddressZ() faild on Linux Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org did anyone notice the failures on linux? or it just happen on my local env? junit.framework.AssertionFailedError: Unexpected exception when setReuseAddress is the default case and we bind:Harmony-L3NEK37/127.0.0.1:55891:java.net.BindException: The address is not available at junit.framework.Assert.fail(Assert.java:47) at org.apache.harmony.luni.tests.java.net.ServerSocketTest.test_setReuseAddressZ(ServerSocketTest.java:760) at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java) at java.lang.reflect.Method.invoke(Method.java:317) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) I found the default value of ServerSocket.getReuseAddress() on Linux should be true, but on Harmony is false, following simple test show this: ServerSocket serverSocket = new ServerSocket(); System.out.println(serverSocket.getReuseAddress()); and I found it's introduced by commit r723103, and the code set default value is removed intended, so I think there must be a reason. From spec, it's undefined: When a ServerSocket is created the initial setting of SO_REUSEADDR is not defined So both Harmony and RI are reasonable. Should we follow RI or mark it as non-bug difference and correct the test case? -- Best Regards, Regis.