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 { }