author | hseigel |
Wed, 02 Mar 2016 23:48:41 +0000 | |
changeset 36397 | c487ced7231c |
parent 24797 | 850ebd4d80a7 |
permissions | -rw-r--r-- |
/* * @test /nodynamiccopyright/ * @bug 4041948 4022450 * @summary javac previously allowed static methods to override non-static * methods in some cases. * @author turnidge * * @compile/fail/ref=StaticOverride.out -XDrawDiagnostics StaticOverride.java */ interface I{ int f(); } class C { public static int f() { return 7; } } class StaticOverride extends C implements I { }