-
Bug
-
Resolution: Fixed
-
P1
-
1.0, 1.1
-
1.1beta3
-
x86, sparc
-
solaris_2.4, solaris_2.5, windows_95
-
Not verified
The jck-102a tests were compiled with jdk1.1i and jdk1.1k and run on Solaris.
When the following tests were compiled with jdk1.1i, the compilation failed
as expected. However, when compiled with jdk1.1k, the compilation did not
fail as expected:
switch
if
for
Results files are at:
/home/hagen/RESULTS/sol/b2/lang/errors/stat_not_reached/[test]
for jdk1.1i-compiled tests, and at
/home/hagen/RESULTS/sol/k/lang/errors/stat_not_reached/[test]
for jdk1.1k-compiled tests
The following results files are for switch:
1) jdk1.1i --
#Test Results
#Fri Oct 04 10:10:05 PDT 1996
status=Failed. Reference file not found
work=file:/home/hagen/RESULTS/sol/b2/lang/errors/stat_not_reached/
execStatus=Completed--check results. Compilation failed as expected; check output [exit code 1]
description=file:/home/hagen/JCK-102a/tests/lang/errors/stat_not_reached/index.html
sections=compile.java
harnessVersion=JT1.0_beta1
end=Fri Oct 04 10:10:05 PDT 1996
start=Fri Oct 04 10:10:00 PDT 1996
environment=jdk1.1
test: file:/home/hagen/JCK-102a/tests/lang/errors/stat_not_reached/index.html
running script javasoft.sqe.harness.CompTestScript -expectFail -checkErrors
exec: /usr/local/java/jdk1.1/solaris/bin/javac -d /home/hagen/RESULTS/sol/b2/classes JCK-102a/tests/lang/errors/stat_not_reached/switch.java CLASSPATH=/home/hagen/JCK-102a/classes:/home/hagen/RESULTS/sol/b2/classes:
command exited, exit=1
command result: status not set
----------ref:compile.java(0/0)----------
----------log:compile.java(7/228)----------
err = 1!
JCK-102a/tests/lang/errors/stat_not_reached/switch.java:17: Statement not reached.
i++;
^
JCK-102a/tests/lang/errors/stat_not_reached/switch.java:17: Variable i may not have been initialized.
i++;
^
test result: Completed--check results. Compilation failed as expected; check output [exit code 1]
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
2) jdk1.1k --
#Test Results
#Wed Oct 23 20:53:05 PDT 1996
status=Failed. Compilation did not fail as expected [exit code 0]
work=file:/home/hagen/RESULTS/sol/k/lang/errors/stat_not_reached/
execStatus=Failed. Compilation did not fail as expected [exit code 0]
description=file:/home/hagen/JCK-102a/tests/lang/errors/stat_not_reached/index.html
sections=compile.java
harnessVersion=JT1.0_beta1
end=Wed Oct 23 20:53:05 PDT 1996
start=Wed Oct 23 20:52:59 PDT 1996
environment=jdk1.1
test: file:/home/hagen/JCK-102a/tests/lang/errors/stat_not_reached/index.html
running script javasoft.sqe.harness.CompTestScript -expectFail
exec: /usr/local/java/jdk1.1/solaris/bin/javac -d /home/hagen/RESULTS/sol/k/classes tests/lang/errors/stat_not_reached/switch.java CLASSPATH=/home/hagen/JCK-102a/classes:/home/hagen/RESULTS/sol/k/classes:
command exited, exit=0
command result: status not set
----------ref:compile.java(0/0)----------
----------log:compile.java(5/110)----------
err = 1!
tests/lang/errors/stat_not_reached/switch.java:17: Statement not reached.
i++;
^
1 warning
test result: Failed. Compilation did not fail as expected [exit code 0]
When the following tests were compiled with jdk1.1i, the compilation failed
as expected. However, when compiled with jdk1.1k, the compilation did not
fail as expected:
switch
if
for
Results files are at:
/home/hagen/RESULTS/sol/b2/lang/errors/stat_not_reached/[test]
for jdk1.1i-compiled tests, and at
/home/hagen/RESULTS/sol/k/lang/errors/stat_not_reached/[test]
for jdk1.1k-compiled tests
The following results files are for switch:
1) jdk1.1i --
#Test Results
#Fri Oct 04 10:10:05 PDT 1996
status=Failed. Reference file not found
work=file:/home/hagen/RESULTS/sol/b2/lang/errors/stat_not_reached/
execStatus=Completed--check results. Compilation failed as expected; check output [exit code 1]
description=file:/home/hagen/JCK-102a/tests/lang/errors/stat_not_reached/index.html
sections=compile.java
harnessVersion=JT1.0_beta1
end=Fri Oct 04 10:10:05 PDT 1996
start=Fri Oct 04 10:10:00 PDT 1996
environment=jdk1.1
test: file:/home/hagen/JCK-102a/tests/lang/errors/stat_not_reached/index.html
running script javasoft.sqe.harness.CompTestScript -expectFail -checkErrors
exec: /usr/local/java/jdk1.1/solaris/bin/javac -d /home/hagen/RESULTS/sol/b2/classes JCK-102a/tests/lang/errors/stat_not_reached/switch.java CLASSPATH=/home/hagen/JCK-102a/classes:/home/hagen/RESULTS/sol/b2/classes:
command exited, exit=1
command result: status not set
----------ref:compile.java(0/0)----------
----------log:compile.java(7/228)----------
err = 1!
JCK-102a/tests/lang/errors/stat_not_reached/switch.java:17: Statement not reached.
i++;
^
JCK-102a/tests/lang/errors/stat_not_reached/switch.java:17: Variable i may not have been initialized.
i++;
^
test result: Completed--check results. Compilation failed as expected; check output [exit code 1]
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
2) jdk1.1k --
#Test Results
#Wed Oct 23 20:53:05 PDT 1996
status=Failed. Compilation did not fail as expected [exit code 0]
work=file:/home/hagen/RESULTS/sol/k/lang/errors/stat_not_reached/
execStatus=Failed. Compilation did not fail as expected [exit code 0]
description=file:/home/hagen/JCK-102a/tests/lang/errors/stat_not_reached/index.html
sections=compile.java
harnessVersion=JT1.0_beta1
end=Wed Oct 23 20:53:05 PDT 1996
start=Wed Oct 23 20:52:59 PDT 1996
environment=jdk1.1
test: file:/home/hagen/JCK-102a/tests/lang/errors/stat_not_reached/index.html
running script javasoft.sqe.harness.CompTestScript -expectFail
exec: /usr/local/java/jdk1.1/solaris/bin/javac -d /home/hagen/RESULTS/sol/k/classes tests/lang/errors/stat_not_reached/switch.java CLASSPATH=/home/hagen/JCK-102a/classes:/home/hagen/RESULTS/sol/k/classes:
command exited, exit=0
command result: status not set
----------ref:compile.java(0/0)----------
----------log:compile.java(5/110)----------
err = 1!
tests/lang/errors/stat_not_reached/switch.java:17: Statement not reached.
i++;
^
1 warning
test result: Failed. Compilation did not fail as expected [exit code 0]
- duplicates
-
JDK-1240397 'switch' statement allows statements without 'case' in switch block
- Closed