comparison: test/tools/javac/annotations/typeAnnotations/failures/StaticMethods.java
test/tools/javac/annotations/typeAnnotations/failures/StaticMethods.java
- changeset 2134
- b0c086cd4520
- parent 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(StaticMethods this) { } |
|
10 } |
|
11 |
|
12 @interface A { } |
|