java: fix repeatable annotations check when non-annotation type is passed as value (IDEA-250935)

GitOrigin-RevId: 7f819cfa97ac8fe49e58e3dc2e4c13e42f724963
This commit is contained in:
Anna Kozlova
2020-09-18 20:18:03 +02:00
committed by intellij-monorepo-bot
parent c216b02fac
commit 576590686d
2 changed files with 7 additions and 3 deletions

View File

@@ -55,4 +55,7 @@ class C8 {
}
@interface AA9 { A9[] value(); int i(); }
@Repeatable(<error descr="Container annotation 'AA9' does not have a default value for 'i'">AA9.class</error>) @interface A9 { }
@Repeatable(<error descr="Container annotation 'AA9' does not have a default value for 'i'">AA9.class</error>) @interface A9 { }
@Repeatable(<error descr="Invalid container annotation 'java.lang.annotation.Annotation': no 'value' method declared">Annotation.class</error>)
@interface A10 {}