Sat, 13 Apr 2013 12:25:44 +0100
8010659: Javac Crashes while building OpenJFX
Reviewed-by: jjg
Contributed-by: maurizio.cimadamore@oracle.com
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 }
12 @interface A { }