1 package test4; 2 3 public class AnnoArg { 4 public static @interface AnnoArgAt { value()5 Class<? extends AnnoArg.A> value(); 6 } 7 8 public static class A { baz()9 int baz() { return 1; } 10 } 11 12 public static class B extends A { baz()13 int baz() { return 2; } 14 } 15 16 @AnnoArgAt(B.class) foo(int i)17 public int foo(int i) { return i; } 18 } 19