< prev index next >

test/langtools/tools/javac/annotations/repeatingAnnotations/InvalidRepAnnoOnCast.java

Print this page
*** 14,7 ***
      @interface T { int value(); }
  
      @Target(ElementType.TYPE_PARAMETER)
      @interface TC { T[] value(); }
  
!     String s = (@T(1) @T(2) String) new Object();
  }
--- 14,7 ---
      @interface T { int value(); }
  
      @Target(ElementType.TYPE_PARAMETER)
      @interface TC { T[] value(); }
  
!     String s = (@T(1) @T(2) String) new Object() {};
  }
< prev index next >