-
Bug
-
Resolution: Fixed
-
P3
-
1.4.0
-
hopper
-
generic, x86
-
generic, windows_98
-
Verified
Currently test/java/net/BindException/Test.java assumes that one can
create a socket, close it, and then bind to the port immediately. This
isn't true on Linux. By change the test will pass on Linux when IPv4
is used (because the expected results are the same as the actual
results). However when IPv6 is enabled the number of test combinations
increase and some of the tests fail.
The free port allocator needs to be changed in the test so that it
doesn't assume we can re-bind immediately.
###@###.### 2001-11-04
Regression test java/net/BindException/Test.java fails with Merlin build 84 on win98, host cwbybkr.
For test hardware config's, see http://sqesvr.eng/st3/jdk1.4/docs/Merlin-hw.html
#Test Results (version 2)
#Wed Oct 24 15:24:23 PDT 2001
#checksum:2f0185a225ea0e3e
#-----testdescription-----
$file=X:\\st1\\regression\\merlin\\jdk1.4Tests\\tests\\b84\\java\\net\\BindException\\Test.java
$root=X:\\st1\\regression\\merlin\\jdk1.4Tests\\tests\\b84
keywords=bug4417734
run=ASSUMED_ACTION main Test\r\n
source=Test.java
title=Test that we get a BindException in all combinations of specific address, inaddr_any, and in6addr_any.
#-----environment-----
#-----testresult-----
description=file:///X:/st1/regression/merlin/jdk1.4Tests/tests/b84/java/net/BindException/Test.java
end=Wed Oct 24 15:24:23 PDT 2001
environment=regtest
execStatus=Failed. Execution failed: `main' threw exception: java.lang.Exception: 6 tests(s) failed - see log
javatestOS=Windows 98 4.10 (x86)
javatestVersion=2.1.5
script=com.sun.javatest.regtest.RegressionScript
sections=script_messages build compile main
start=Wed Oct 24 15:24:21 PDT 2001
status=Failed. Execution failed: `main' threw exception: java.lang.Exception: 6 tests(s) failed - see log
test=java/net/BindException/Test.java
work=C:\\Results\\Regression\\merlin\\b84\\CWBYBKR-Windows_98-jth13-jdk14b84.10-24.14-15-ALL\\java\\net\\BindException
#section:script_messages
----------messages:(4/202)----------
JDK under test: (C:/Java/jdk14b84)
java version "1.4.0-beta3"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b84)
Java HotSpot(TM) Client VM (build 1.4.0-beta3-b84, mixed mode)
#section:build
----------messages:(3/92)----------
command: build Test
reason: Named class compiled on demand
elapsed time (seconds): 1.65
result: Passed. Compilation successful
#section:compile
----------messages:(3/190)*----------
command: compile X:\\st1\\regression\\merlin\\jdk1.4Tests\\tests\\b84\\java\\net\\BindException\\Test.java
reason: .class file out of date or does not exist
elapsed time (seconds): 1.59
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful
#section:main
----------messages:(3/109)----------
command: main Test
reason: Assumed action based on file name: run main Test
elapsed time (seconds): 0.38
----------System.out:(38/990)----------
**************************
Test 2
ServerSocket binds: /0.0.0.0 port: 1080
Socket binds: /129.145.132.160
No bind failure as expected - test failed!!!
**************************
Test 3
ServerSocket binds: /129.145.132.160 port: 1081
Socket binds: /0.0.0.0
No bind failure as expected - test failed!!!
**************************
Test 6
Socket binds: /0.0.0.0 port: 1084
Socket binds: /129.145.132.160
No bind failure as expected - test failed!!!
**************************
Test 7
Socket binds: /129.145.132.160 port: 1085
Socket binds: /0.0.0.0
No bind failure as expected - test failed!!!
**************************
Test 10
DatagramSocket binds: /0.0.0.0 port: 1088
DatagramSocket binds: /129.145.132.160
No bind failure as expected - test failed!!!
**************************
Test 11
DatagramSocket binds: /129.145.132.160 port: 1089
DatagramSocket binds: /0.0.0.0
No bind failure as expected - test failed!!!
12 test(s) executed. 6 failure(s).
----------System.err:(13/714)----------
java.lang.Exception: 6 tests(s) failed - see log
at Test.main(Test.java:211)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
at java.lang.reflect.Method.invoke(Method.java:327)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
at java.lang.Thread.run(Thread.java:539)
JavaTest Message: Test threw exception: java.lang.Exception: 6 tests(s) failed - see log
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.Exception: 6 tests(s) failed - see log
result: Failed. Execution failed: `main' threw exception: java.lang.Exception: 6 tests(s) failed - see log
test result: Failed. Execution failed: `main' threw exception: java.lang.Exception: 6 tests(s) failed - see log
###@###.### 2002-03-21
Verified in Hopper b06.
- relates to
-
JDK-5096825 (JCK1.4a): api/java_net/DatagramSocket/index.html#ReuseAddress
-
- Resolved
-