1 package p; 2 3 class A<E> { 4 @I(num = 12) 5 @interface I { 6 @I(num=13) num()7 int num(); 8 } 9 10 /** 11 * @see I#num() 12 */ 13 class Ref { getIofI()14 int getIofI() { 15 I i= I.class.getAnnotation(I.class); 16 return i.num(); 17 } 18 } 19 }