langtools/test/tools/javac/annotations/typeAnnotations/failures/VoidGenericMethod.java
changeset 15718 8e54c8e43d38
parent 15385 ee1eebe7e210
child 26097 4a16592140fa
equal deleted inserted replaced
15717:ab55670d2e62 15718:8e54c8e43d38
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    20  * or visit www.oracle.com if you need additional information or have any
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
       
    24 import java.lang.annotation.*;
       
    25 
    24 /*
    26 /*
    25  * @test
    27  * @test
    26  * @bug 6843077 8006775
    28  * @bug 6843077 8006775
    27  * @summary test type annotation on void generic methods
    29  * @summary test type annotation on void generic methods
    28  * @author Mahmood Ali
    30  * @author Mahmood Ali
    29  * @compile/fail VoidGenericMethod.java
    31  * @compile/fail VoidGenericMethod.java
    30  */
    32  */
    31 class VoidGenericMethod {
    33 class VoidGenericMethod {
    32   public <T> @A void method() { }
    34   public @A <T> void method() { }
    33 }
    35 }
    34 
    36 
       
    37 @Target(ElementType.TYPE_USE)
    35 @interface A { }
    38 @interface A { }