test/tools/javac/annotations/repeatingAnnotations/InheritedContainerAnno.java

Mon, 16 Sep 2013 14:13:44 +0200

author
jlahoda
date
Mon, 16 Sep 2013 14:13:44 +0200
changeset 2028
4ce8148ffc4f
parent 1492
df694c775e8a
child 2525
2eb010b6cb22
permissions
-rw-r--r--

8021112: Spurious unchecked warning reported by javac
6480588: No way to suppress deprecation warnings when implementing deprecated interface
Summary: Fixing DeferredLintHandler configuration, so lint warnings are reported with correct @SuppressWarnings settings
Reviewed-by: jjg, vromero

     1 /**
     2  * @test    /nodynamiccopyright/
     3  * @bug     7169362
     4  * @author   sogoel
     5  * @summary Base anno is Inherited but Container anno is not
     6  * @compile/fail/ref=InheritedContainerAnno.out -XDrawDiagnostics InheritedContainerAnno.java
     7  */
     9 import java.lang.annotation.Repeatable;
    10 import java.lang.annotation.Inherited;
    12 @Inherited
    13 @Repeatable(FooContainer.class)
    14 @interface Foo {}
    16 @interface FooContainer{
    17     Foo[] value();
    18 }
    20 @Foo @Foo
    21 public class InheritedContainerAnno {}

mercurial