The following test failed with URL incorrectly created.
Bug description --->
****************************************************************************
Failing Test:
========
api/java_net/URL/descriptions.html#Ctor2
JCK :
=====
JCK13a
Test source location:
====================
For JCK1.3a -> /net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/tests/
/net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/tests/api/java_net/URL/
Ctor2Tests.java
NewURLStreamHandler.java
NewURLStreamHandlerFactory.java
Platforms:
=============
Sparc/solaris 7
Intel/solaris 5.6
JDK, switches Info:
===================
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b48)
Java HotSpot(TM) Client VM (build 1.4beta-B48, mixed mode)
jtr file location:
==================
file:/net/jtg-s117/export/home/jtg-test/JH_jdk14_b48_jck13a/workDir/api/java_net/URL/descriptions_Ctor2.jtr
How to reproduce:
====================
Run the attached script:
net_URL_Ctor.ksh
#!/bin/ksh
JDK=/net/jdk/export/disk8/local.java/jdk1.4.0
#This is where you want the JCK to be use.
#Example: TESTBASE=/net/jdk/export/disk8/local.java/jck1.3a
TESTBASE=/net/jdk/export/disk8/local.java/jck1.3a
JCK=${TESTBASE}/JCK-runtime-13a
executeClass=javasoft.sqe.tests.api.java.net.URL.Ctor2Tests
excludeCmd=
executeClassArgs="-TestCaseID URL0107 URL0108"
executeTestURL=
case `uname -s` in
SunOS)
ARCH=`uname -p`
case $ARCH in
sparc)
sharedJDK=$JDK/solsparc
;;
i386)
sharedJDK=$JDK/solx86
;;
esac
;;
Linux)
sharedJDK=$JDK/linux-i386
ARCH=linux
;;
esac
CLASSPATH=${JCK}/classes:${JCK}/javatest.jar
DISPLAY=${DISPLAY-$HOST:0.0}
LD_LIBRARY_PATH=${JCK}/lib/${ARCH}
PATH=$JDK/bin:$sharedJDK/bin:$PATH
export PATH CLASSPATH DISPLAY LD_LIBRARY_PATH
echo
java ${SWITCH} -version
echo
java ${SWITCH} -verify -Xfuture -Djava.security.policy=${JCK}/lib/jck.policy -Djava.rmi.activation.port=javasoft.sqe.tests.api.java.net.URL.Ctor2Tests ${executeClass} ${excludeCmd} ${executeClassArgs} ${executeContextArgs} ${executeTestURL}
Test output:
=============
URL0107: Failed. Failed
URL0108: Failed. Failed
context: http://host/file?x=1&y=0, spec: #ref
created url: http://host/file#ref
expected url: http://host/file?x=1&y=0#ref
--------------------------
context: http://host/file?x=1&y=0, spec: #ref
created url: http://host/file#ref
expected url: http://host/file?x=1&y=0#ref
--------------------------
STATUS:Failed.tests: 2; failed: 2; first test case failure: URL0107
Specific Machine Info:
=====================
Sparc:
Hostname: jtg-s117
Hostid: 808fe83f
Release: 5.7
Kernel architecture: sun4u
Application architecture: sparc
Hardware provider: Sun_Microsystems
Domain: javasoft.eng.sun.com
Kernel version: SunOS 5.7 Generic 106541-12 May 2000
===========
Status of processor 0 as of: 01/23/01 14:28:28
Processor has been on-line since 01/17/01 13:34:53.
The sparcv9 processor operates at 296 MHz,
and has a sparcv9 floating point processor.
Status of processor 2 as of: 01/23/01 14:28:28
Processor has been on-line since 01/17/01 13:34:54.
The sparcv9 processor operates at 296 MHz,
and has a sparcv9 floating point processor.
===========
Solaris 7 11/99 s998s_u4SunServer_10 SPARC
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved.
Assembled 15 October 1999
Intel:
Hostname: jtg-i104
Hostid: 1a2c637f
Release: 5.6
Kernel architecture: i86pc
Application architecture: i386
Hardware provider:
Domain: javasoft.eng.sun.com
Kernel version: SunOS 5.6 Generic 105182-23 July 2000
===========
Status of processor 0 as of: 01/23/01 14:28:55
Processor has been on-line since 01/17/01 13:36:28.
The i386 processor operates at 234 MHz,
and has an i387 compatible floating point processor.
Status of processor 1 as of: 01/23/01 14:28:55
Processor has been on-line since 01/17/01 13:36:28.
The i386 processor operates at 234 MHz,
and has an i387 compatible floating point processor.
===========
Solaris 2.6 s297_37c INTEL
Copyright 1996 Sun Microsystems, Inc. All Rights Reserved.
Manufactured in the USA 16 July 1997
Additional JCK related info:
============================
URL to find JCK test owners: http://javaweb.eng/jck/usr/owners.jto
takwing.cheung@Eng 2001-01-23
Bug description --->
****************************************************************************
Failing Test:
========
api/java_net/URL/descriptions.html#Ctor2
JCK :
=====
JCK13a
Test source location:
====================
For JCK1.3a -> /net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/tests/
/net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/tests/api/java_net/URL/
Ctor2Tests.java
NewURLStreamHandler.java
NewURLStreamHandlerFactory.java
Platforms:
=============
Sparc/solaris 7
Intel/solaris 5.6
JDK, switches Info:
===================
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b48)
Java HotSpot(TM) Client VM (build 1.4beta-B48, mixed mode)
jtr file location:
==================
file:/net/jtg-s117/export/home/jtg-test/JH_jdk14_b48_jck13a/workDir/api/java_net/URL/descriptions_Ctor2.jtr
How to reproduce:
====================
Run the attached script:
net_URL_Ctor.ksh
#!/bin/ksh
JDK=/net/jdk/export/disk8/local.java/jdk1.4.0
#This is where you want the JCK to be use.
#Example: TESTBASE=/net/jdk/export/disk8/local.java/jck1.3a
TESTBASE=/net/jdk/export/disk8/local.java/jck1.3a
JCK=${TESTBASE}/JCK-runtime-13a
executeClass=javasoft.sqe.tests.api.java.net.URL.Ctor2Tests
excludeCmd=
executeClassArgs="-TestCaseID URL0107 URL0108"
executeTestURL=
case `uname -s` in
SunOS)
ARCH=`uname -p`
case $ARCH in
sparc)
sharedJDK=$JDK/solsparc
;;
i386)
sharedJDK=$JDK/solx86
;;
esac
;;
Linux)
sharedJDK=$JDK/linux-i386
ARCH=linux
;;
esac
CLASSPATH=${JCK}/classes:${JCK}/javatest.jar
DISPLAY=${DISPLAY-$HOST:0.0}
LD_LIBRARY_PATH=${JCK}/lib/${ARCH}
PATH=$JDK/bin:$sharedJDK/bin:$PATH
export PATH CLASSPATH DISPLAY LD_LIBRARY_PATH
echo
java ${SWITCH} -version
echo
java ${SWITCH} -verify -Xfuture -Djava.security.policy=${JCK}/lib/jck.policy -Djava.rmi.activation.port=javasoft.sqe.tests.api.java.net.URL.Ctor2Tests ${executeClass} ${excludeCmd} ${executeClassArgs} ${executeContextArgs} ${executeTestURL}
Test output:
=============
URL0107: Failed. Failed
URL0108: Failed. Failed
context: http://host/file?x=1&y=0, spec: #ref
created url: http://host/file#ref
expected url: http://host/file?x=1&y=0#ref
--------------------------
context: http://host/file?x=1&y=0, spec: #ref
created url: http://host/file#ref
expected url: http://host/file?x=1&y=0#ref
--------------------------
STATUS:Failed.tests: 2; failed: 2; first test case failure: URL0107
Specific Machine Info:
=====================
Sparc:
Hostname: jtg-s117
Hostid: 808fe83f
Release: 5.7
Kernel architecture: sun4u
Application architecture: sparc
Hardware provider: Sun_Microsystems
Domain: javasoft.eng.sun.com
Kernel version: SunOS 5.7 Generic 106541-12 May 2000
===========
Status of processor 0 as of: 01/23/01 14:28:28
Processor has been on-line since 01/17/01 13:34:53.
The sparcv9 processor operates at 296 MHz,
and has a sparcv9 floating point processor.
Status of processor 2 as of: 01/23/01 14:28:28
Processor has been on-line since 01/17/01 13:34:54.
The sparcv9 processor operates at 296 MHz,
and has a sparcv9 floating point processor.
===========
Solaris 7 11/99 s998s_u4SunServer_10 SPARC
Copyright 1999 Sun Microsystems, Inc. All Rights Reserved.
Assembled 15 October 1999
Intel:
Hostname: jtg-i104
Hostid: 1a2c637f
Release: 5.6
Kernel architecture: i86pc
Application architecture: i386
Hardware provider:
Domain: javasoft.eng.sun.com
Kernel version: SunOS 5.6 Generic 105182-23 July 2000
===========
Status of processor 0 as of: 01/23/01 14:28:55
Processor has been on-line since 01/17/01 13:36:28.
The i386 processor operates at 234 MHz,
and has an i387 compatible floating point processor.
Status of processor 1 as of: 01/23/01 14:28:55
Processor has been on-line since 01/17/01 13:36:28.
The i386 processor operates at 234 MHz,
and has an i387 compatible floating point processor.
===========
Solaris 2.6 s297_37c INTEL
Copyright 1996 Sun Microsystems, Inc. All Rights Reserved.
Manufactured in the USA 16 July 1997
Additional JCK related info:
============================
URL to find JCK test owners: http://javaweb.eng/jck/usr/owners.jto
takwing.cheung@Eng 2001-01-23
- duplicates
-
JDK-4364284 JDK regression: java.net.URL.URL(URL context, String spec)
-
- Closed
-
-
JDK-4393859 URL(URL context, String spec) is giving wrong output when spec is null
-
- Closed
-