-
Bug
-
Resolution: Fixed
-
P2
-
1.4.2_13
Test * java/net/HttpURLConnection/4523989/Test.java: Behavior of getResponseCode() is different between 131_01 and 131 Fixed in JDK1.3.1_03
failed on 1.4.2_13b1 but passed on previous fcs 1.4.2_12b3
output results are
for 1.4.2_12
getResponseCode: 404
getInputStream: java.io.IOException
getErrorStream: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@10385c1
for 1.4.2_13
getResponseCode: 404
getInputStream: java.io.FileNotFoundException: http://jpseuwt-ap/testcases/131/4523989
getErrorStream: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@42719c
Test passed if
grep "getInputStream" test.out | grep "java.io.IOException"
Also
According documentations it should throw IOException - if an I/O error occurs while creating the input stream.
So it's a bug in that case.
In other case it can be a test's issue, I see a change of the checking filed state
grep "getInputStream" test.out | grep "java.io.FileNotFoundException"
changed to
grep "getInputStream" test.out | grep "java.io.IOException"
So, please correct me if it's a not product issue but test's one
Execution results for that test are attached
How to reproduce -
run JTreg with appropriate JDK (1.4.2_13b1)
the JTreg is placed on /net/jqa/export/home4/testsuites/regression/sqe-tools2.1.6fcs
to run please follow instructions http://jqa.ireland/procedures/test_procedures/141_test_procedures/RegressionTestExecution.html
use appropriate locations
test-suite /net/jqa/export/home4/testsuites/regression/142u13/test
And -automatic -bug:4523989 flag to that script
tested on
SunOS ventura 5.10 Generic_118822-30 sun4u sparc SUNW,Sun-Blade-2500
bash-3.00$ cat /etc/*release*
Solaris 10 1/06 s10s_u1wos_19a SPARC
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 07 December 2005
failed on 1.4.2_13b1 but passed on previous fcs 1.4.2_12b3
output results are
for 1.4.2_12
getResponseCode: 404
getInputStream: java.io.IOException
getErrorStream: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@10385c1
for 1.4.2_13
getResponseCode: 404
getInputStream: java.io.FileNotFoundException: http://jpseuwt-ap/testcases/131/4523989
getErrorStream: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@42719c
Test passed if
grep "getInputStream" test.out | grep "java.io.IOException"
Also
According documentations it should throw IOException - if an I/O error occurs while creating the input stream.
So it's a bug in that case.
In other case it can be a test's issue, I see a change of the checking filed state
grep "getInputStream" test.out | grep "java.io.FileNotFoundException"
changed to
grep "getInputStream" test.out | grep "java.io.IOException"
So, please correct me if it's a not product issue but test's one
Execution results for that test are attached
How to reproduce -
run JTreg with appropriate JDK (1.4.2_13b1)
the JTreg is placed on /net/jqa/export/home4/testsuites/regression/sqe-tools2.1.6fcs
to run please follow instructions http://jqa.ireland/procedures/test_procedures/141_test_procedures/RegressionTestExecution.html
use appropriate locations
test-suite /net/jqa/export/home4/testsuites/regression/142u13/test
And -automatic -bug:4523989 flag to that script
tested on
SunOS ventura 5.10 Generic_118822-30 sun4u sparc SUNW,Sun-Blade-2500
bash-3.00$ cat /etc/*release*
Solaris 10 1/06 s10s_u1wos_19a SPARC
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 07 December 2005
- relates to
-
JDK-4845728 Turning on Jar Caching causes a DownloadException and the applet jar fails load
- Resolved