Name: asR10013 Date: 04/11/2002
Filed By : J2SE-SQA [###@###.###
JDK : jdk1.4.1-b08 (does not appear in jdk1.4.1-b07)
JCK : jck1.4-b17
Platform[s] : RH Linux 7.1, Windows 2000, Windows XP.
switch/Mode : -client -Xmixed -Xfuture
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Falling test[s]: api/java_util/regex/Pattern/index.html#compile [Pattern2040, Pattern2041, Pattern2042, Pattern2043]
$ and ^ special regexp characters are reimplemented in JDK 1.4.1-b08 and are treated incorrectly in multiline patterns.
Test source location:
=====================
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/java_util/regex/Pattern/compileTests.java
jtr file location:
==================
/net/jtgb4u4c.eng/export/sail15/results/hopper/b07/jck14/win32/redhat7.1_gnome_client_linux-12/workDir/api/java_util/regex/Pattern/index_compile.jtr
How to reproduce:
=================
Run the following script (you may need to change JCK and JDK variables)
--- script start ---
#!/bin/sh
JCK="/net/linux-15/export/home/java/jck1.4/JCK-runtime-14"
JDK="/net/linux-15/export/home/java/jdk1.4.1/linux"
switches="-client -Xmixed -Xfuture"
CLASSPATH="${JCK}/classes:${JCK}/javatest.jar"
$JDK/bin/java $switches -cp $CLASSPATH javasoft.sqe.tests.api.java.util.regex.Pattern.compileTests -TestCaseID Pattern2040 Pattern2041 Pattern2042 Pattern2043
--- script end ---
Test output:
============
Pattern2040: Failed. Failed to compile regex: (?m)^.*$^.* object
Pattern2041: Failed. Failed to compile regex: (?m).*$.+$ object
Pattern2042: Failed. Failed to compile regex: (?m).+\b.+\b$.+\b$ object
Pattern2043: Failed. Failed to compile regex: (?m).+\b.+\b$.+\b$ object
Positive matches for pattern: (?m)^.*$^.* and string: aaab
a failed.
Positive matches for pattern: (?m).*$.+$ and string: aaab
a failed.
Positive matches for pattern: (?m).+\b.+\b$.+\b$ and string: aaab asd
a failed.
Positive matches for pattern: (?m).+\b.+\b$.+\b$ and string: aaab asd
a failed.
STATUS:Failed.tests: 4; failed: 4; first test case failure: Pattern2040
Specific Machine Info:
======================
Hostname: linux-12
OS: RedHat Linux 7.1/Gnome
======================================================================