-
Bug
-
Resolution: Fixed
-
P4
-
1.1.3, 1.2.0
-
merlin
-
generic
-
generic, solaris_2.5.1, solaris_2.6
-
Verified
Just a semicolon in a method body is a null statement. It has the full status
of a statement except that it is a noop.
Hence, the following method should not compile:
void f() {
return;;
}
The second semicolon is a different statement and is unreachable. There
should be an error reported that the second semicolon is unreachable.
of a statement except that it is a noop.
Hence, the following method should not compile:
void f() {
return;;
}
The second semicolon is a different statement and is unreachable. There
should be an error reported that the second semicolon is unreachable.
- duplicates
-
JDK-4090852 empty statements are not treated as statements that need to be reachable
- Closed
-
JDK-4181162 Possible incorrect code in JDK sources accepted by javac
- Closed
- relates to
-
JDK-4093121 Contradiction in statements for execution of an empty statement in chapter 14
- Closed