Spec update for repeatable/containing relationship
Alex Buckley
alex.buckley at oracle.com
Thu Sep 20 13:58:12 PDT 2012
I just updated the spec to slightly tighten the two-way relationship
between a repeatable and a containing annotation type when compiling a
prospective containing annotation type. Previously, its @ContainerFor
merely needed to agree with the containee's @ContainedBy, but that
allowed deformities in the structure of the prospective containing
annotation type (e.g. the return type of its value() element). In
contrast, we always required that compiling a prospective repeatable
annotation type needed to see an @ContainedBy that named a well-formed
containing annotation type.
The change is a single paragraph on page 4 of
http://cr.openjdk.java.net/~abuckley/8misc.pdf, and the corresponding
reflection rule on page 10. I extended the example on page 4 too.
Separately, I would be grateful if any EE engineers on this list could
be sure they agree with the detailed reflection examples in section 1.2.
Alex
More information about the enhanced-metadata-spec-discuss
mailing list