blob: 37a9bc2e6fb3ec000349cd5763f30f0ab9d56af0 [file] [log] [blame]
/*
* @test /nodynamiccopyright/
* @bug 6843077 8006775
* @summary test type annotation on void generic methods
* @author Mahmood Ali
* @compile/fail/ref=VoidGenericMethod.out -XDrawDiagnostics VoidGenericMethod.java
*/
import java.lang.annotation.*;
class VoidGenericMethod {
public @A <T> void method() { }
}
@Target(ElementType.TYPE_USE)
@interface A { }