Question for Mike re: changing containers

Alex Buckley alex.buckley at oracle.com
Wed Mar 6 17:22:56 PST 2013


Mike, we're pondering whether the new methods in core reflection should 
be strict about the relationship of containing type to repeatable type.

Have you ever written @FooContainer({@Foo(1),...}) on a declartion, and 
later changed it to @OtherContainer({@Foo(1),...}) ? The effect on 
clients using getAnnotation(Class) and getAnnotations() would be 
significant.

Effectively we are wondering if a client using 
getAnnotationsByType(Foo.class) should be affected by such a change.

Alex



More information about the enhanced-metadata-spec-discuss mailing list