jdk-24/test/langtools/tools/javac/annotations/neg/MemberOver.java

15 lines
296 B
Java
Raw Normal View History

2007-12-01 00:00:00 +00:00
/*
* @test /nodynamiccopyright/
2007-12-01 00:00:00 +00:00
* @bug 4989667
* @summary Annotation members must not have same signature as Object or Annotation members
* @author gafter
*
* @compile/fail/ref=MemberOver.out -XDrawDiagnostics MemberOver.java
2007-12-01 00:00:00 +00:00
*/
package memberOver;
@interface T {
int hashCode();
}