Question for Mike re: changing containers
Alex Buckley
alex.buckley at oracle.com
Fri Mar 8 12:44:06 PST 2013
On 3/7/2013 11:47 PM, michael keith wrote:
> My experience is that the meta-annotations on the container annotation
> should match exactly what is on the contained annotation (with the
> possible exception that I might only want @Documented to be on @Foo and
> not on @FooContainer, if that worked :-). In all other cases I would
> expect to be told at compile-time since it is likely an oversight if
> they don't match. I don't know that it is that important to catch at
> runtime, though, and I would likely opt out of the extra checking if it
> cost me some performance.
Thanks Mike. We will continue to be strict at compile-time, but will
loosen the rules for core reflection so that a container annotation
merely needs an array-typed value element; contemporary properties of
the containing annotation type (e.g. applicability) will be ignored.
Alex
More information about the enhanced-metadata-spec-discuss
mailing list