test/tools/javac/annotations/typeAnnotations/failures/VoidGenericMethod.java

changeset 1563
bc456436c613
parent 1521
71f35e4b93a5
child 2525
2eb010b6cb22
     1.1 --- a/test/tools/javac/annotations/typeAnnotations/failures/VoidGenericMethod.java	Tue Feb 12 19:25:09 2013 +0000
     1.2 +++ b/test/tools/javac/annotations/typeAnnotations/failures/VoidGenericMethod.java	Tue Feb 12 17:15:29 2013 -0800
     1.3 @@ -21,6 +21,8 @@
     1.4   * questions.
     1.5   */
     1.6  
     1.7 +import java.lang.annotation.*;
     1.8 +
     1.9  /*
    1.10   * @test
    1.11   * @bug 6843077 8006775
    1.12 @@ -29,7 +31,8 @@
    1.13   * @compile/fail VoidGenericMethod.java
    1.14   */
    1.15  class VoidGenericMethod {
    1.16 -  public <T> @A void method() { }
    1.17 +  public @A <T> void method() { }
    1.18  }
    1.19  
    1.20 +@Target(ElementType.TYPE_USE)
    1.21  @interface A { }

mercurial