-
Bug
-
Resolution: Fixed
-
P2
-
1.4.2
-
mantis
-
x86
-
linux, solaris_8, windows_xp
-
Verified
Name: asR10013 Date: 09/23/2002
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.4.2-b02
Testbase : RegTest-test
Platform[s] : Solaris, Linux, Windows XP
Falling test[s]:
com/sun/jdi/LineNumberInfo.java
com/sun/jdi/LineNumberInfo.java fails because the com.sun.jdi.Method.allLineLocations()
returns a list of a size larger than expected.
The test passed on JDK1.4.1-b21.
jtr file location:
==================
/net/jtgb4u4c.eng/export/sail15/results/mantis/b02/regtest/linux/redhat7.2_gnome_smp__linux-24/workDir/test/com/sun/jdi/LineNumberInfo.jtr
How to reproduce:
=================
Run the following script
#!/bin/bash
PS=':'
JDK=/net/linux-15/export/home/java/jdk1.4.2/linux
TEST_BASE=/net/linux-15/export/home/java/regtest
TEST_PACKAGE=com/sun/jdi
TEST_SHORT_NAME=LineNumberInfo
TEST_NAME=$TEST_PACKAGE/$TEST_SHORT_NAME
TEST_ARGS=ControlFlow
TEST_SRC=$TEST_BASE/test/${TEST_NAME}.java
TEST_SRC2=$TEST_BASE/test/$TEST_PACKAGE/${TEST_ARGS}.java
export CLASSPATH=.${PS}${JDK}${PS}${JDK}/lib/tools.jar${PS}${TEST_BASE}${PS}${TEST_BASE}/test/${TEST_PACKAGE}
mkdir -p $TEST_PACKAGE
$JDK/bin/javac -g -classpath $CLASSPATH -d . $TEST_SRC
$JDK/bin/javac -g -classpath $CLASSPATH -d . $TEST_SRC2
echo "$JDK/bin/java -cp $CLASSPATH $TEST_SHORT"
$JDK/bin/java_g -cp $CLASSPATH $TEST_SHORT_NAME $TEST_ARGS
Test output:
=================
JVM version:1.4.2-beta
JDI version: 1.4
JVM description: Java Debug Interface (Reference Implementation) version 1.4
Java Debug Wire Protocol (Reference Implementation) version 1.4
JVM Debug Interface version 1.3
JVM version 1.4.2-beta (Java HotSpot(TM) Client VM, mixed mode)
location=ControlFlow:15
location=ControlFlow:16
location=ControlFlow:19
location=ControlFlow:20
location=ControlFlow:22
location=ControlFlow:25
location=ControlFlow:26
location=ControlFlow:28
location=ControlFlow:32
location=ControlFlow:33
location=ControlFlow:34
location=ControlFlow:36
location=ControlFlow:37
location=ControlFlow:36
location=ControlFlow:40
location=ControlFlow:41
location=ControlFlow:42
location=ControlFlow:45
location=ControlFlow:46
location=ControlFlow:45
location=ControlFlow:49
location=ControlFlow:51
location=ControlFlow:53
location=ControlFlow:55
location=ControlFlow:57
location=ControlFlow:59
location=ControlFlow:60
location=ControlFlow:62
location=ControlFlow:65
location=ControlFlow:67
location=ControlFlow:69
location=ControlFlow:71
location=ControlFlow:73
location=ControlFlow:75
location=ControlFlow:78
if, no else
if branch
else branch
caught exception
finally
synchronized
Loop iteration: 1/22
Loop iteration: 2/22
Loop iteration: 3/22
Loop iteration: 4/22
Loop iteration: 5/22
Loop iteration: 6/22
Loop iteration: 7/22
Loop iteration: 8/22
Loop iteration: 9/22
Loop iteration: 10/22
Loop iteration: 11/22
Loop iteration: 12/22
Loop iteration: 13/22
Loop iteration: 14/22
Loop iteration: 15/22
Loop iteration: 16/22
Loop iteration: 17/22
Loop iteration: 18/22
Loop iteration: 19/22
Loop iteration: 20/22
Loop iteration: 21/22
Loop iteration: 22/22
switch case
switch default
Exception in thread "main" java.lang.Exception: Bad line number table size: jdi=35, test=33
at LineNumberInfo.runTests(LineNumberInfo.java:145)
at JDIScaffold.startTests(JDIScaffold.java:225)
at LineNumberInfo.main(LineNumberInfo.java:113)
======================================================================