The Preliminary Proposed Final Draft Spec for JSR-175 (4986770) specifies that "[annotation] Methods must not have the same signature as any method in class java.lang.Object or interface java.lang.Annotation." The compiler must enforce this restriction.
- relates to
-
JDK-6393539 CONFORMANCE: no compiler error if method in annotation type is override-equivalent to clone(), etc.
- Closed