langtools/test/tools/javac/annotations/neg/8171322/TypeVariableAsAnnotationTest.java
changeset 43279 9afb33b0a3ab
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/langtools/test/tools/javac/annotations/neg/8171322/TypeVariableAsAnnotationTest.java	Mon Jan 23 10:28:52 2017 +0530
@@ -0,0 +1,11 @@
+/*
+ * @test /nodynamiccopyright/
+ * @bug 8171322
+ * @summary AssertionError in TypeSymbol.getAnnotationTypeMetadata
+ * @compile SimpleProcessor.java
+ * @compile/fail/ref=TypeVariableAsAnnotationTest.out -processor SimpleProcessor -XDrawDiagnostics TypeVariableAsAnnotationTest.java
+ */
+
+class TypeVariableAsAnnotationTest<Override> {
+  TypeVariableAsAnnotationTest(@Override String foo, @XXX String goo) {}
+}
\ No newline at end of file