Name: ssT124754 Date: 04/04/2001
java version "1.3.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_01)
Java HotSpot(TM) Client VM (build 1.3.0_01, mixed mode)
This is a minor bug; the error message given when accidentally declaring an
interface inside of a block is wrong, since the keyword interface is never
syntactically a modifier.
class Hello {
void foo() {
interface I {}
}
}
Hello.java:3: modifier interface not allowed here
interface I {}
^
1 error
Instead, it should be something along the lines of:
Hello.java:3: keyword interface not allowed here
(Review ID: 120175)
======================================================================
- duplicates
-
JDK-4501208 better error message required.
-
- Closed
-