|
Quick Lists
|
|
Bug ID:
|
4090852
|
|
Votes
|
0
|
|
Synopsis
|
empty statements are not treated as statements that need to be reachable
|
|
Category
|
java:compiler
|
|
Reported Against
|
1.1.3
|
|
Release Fixed
|
|
|
State
|
11-Closed, duplicate of 4083890,
bug
|
|
Priority:
|
3-Medium
|
|
Related Bugs
|
4083890
,
4090844
|
|
Submit Date
|
05-NOV-1997
|
|
Description
|
Yeah, I know.. pretty picky... But the JLS appears to require statement
not reachable errors on the following:
class empty {
int i;
int f1() {
return 1; /* unreachable empty statement -> */ ;
}
int f2() {
while ( false ) /* unreachable empty statement -> */ ;
return 2;
}
}
If following the JLS spec is important, this should be fixed... Unfortunately
there are 3 JCK positive lang testcases that have these kind of errors
in them. See bug 4090844.
It appears that declaration statements (without initializers) are already
given the full statement treatment in that if you replace the above
empty statements with "int k;", you WILL get errors.
This was originally found to be a JLS issue by the Modena testbase.
-kto
xxxxx@xxxxx 1997-11-05
|
|
Work Around
|
N/A
|
|
Evaluation
|
N/A
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |