-
Bug
-
Resolution: Fixed
-
P5
-
6
JLS3, Chapter 9 Interfaces. 9.6 Annotation Types
"It is also a compile-time error if any method declared in an annotation type has a signature that is override-equivalent to that of any public or protected method declared in class Object or in the interface annotation.Annotation."
If we write the following code
@interface test {
int clone();
}
javac doesn't complain, when it should. Same situation with the other Object's protected method finilize().
We have two failures on JCK6.0 b20 QAC build:
lang/ANNOT/annot050/annot05001m7/annot05001m7.html
lang/ANNOT/annot050/annot05001m8/annot05001m8.html
"It is also a compile-time error if any method declared in an annotation type has a signature that is override-equivalent to that of any public or protected method declared in class Object or in the interface annotation.Annotation."
If we write the following code
@interface test {
int clone();
}
javac doesn't complain, when it should. Same situation with the other Object's protected method finilize().
We have two failures on JCK6.0 b20 QAC build:
lang/ANNOT/annot050/annot05001m7/annot05001m7.html
lang/ANNOT/annot050/annot05001m8/annot05001m8.html
- duplicates
-
JDK-6407534 lang/ANNOT/annot050/annot05001m8/annot05001m8.html, annot05001m7.htm failed
- Closed
- relates to
-
JDK-4989667 Annotation members must not have same signature as Object or Annotation members
- Resolved
-
JDK-6428695 No compiler error if enum has a method that is override-equivalent to compareTo(Object)
- Closed