Annotation with array of Annotation

Jochen Theodorou blackdrag at gmx.org
Sat Apr 23 07:25:30 UTC 2016


Hi all,

I know the following does not compile and does right so by the JLS:

public @interface SomeCollector {
     Annotation[] value();
}

I know also that it would be easy to support with the existing 
infrastructure. What I am looking for, is the reasoning as of why this 
is not allowed besides what is directly in the JLS. I am trying to 
understand the background a bit more. Has someone a pointer?

bye Jochen



More information about the core-libs-dev mailing list