comparison: test/tools/javac/annotations/typeAnnotations/failures/StaticMethods.java
test/tools/javac/annotations/typeAnnotations/failures/StaticMethods.java
- changeset 1521
- 71f35e4b93a5
- child 1755
- ddb4a2bfcd82
equal
deleted
inserted
replaced
|
1 /* |
|
2 * @test /nodynamiccopyright/ |
|
3 * @bug 6843077 8006775 |
|
4 * @summary static methods don't have receivers |
|
5 * @author Mahmood Ali |
|
6 * @compile/fail/ref=StaticMethods.out -XDrawDiagnostics StaticMethods.java |
|
7 */ |
|
8 class StaticMethods { |
|
9 static void main(@A StaticMethods this) { } |
|
10 } |
|
11 |
|
12 @interface A { } |