enhanced-metadata-spec-discuss Digest, Vol 13, Issue 6

Alex Buckley alex.buckley at oracle.com
Fri Sep 27 09:59:14 PDT 2013


On 9/26/2013 1:49 PM, Jesper Steen Møller wrote:
> Nitpicking: The declaration of T would give a deprecation warning for
> the use of TC.class in @Repeatable(TC.class), but I guess this is
> unrelated to this clause.

Nitpicking is good! You are right. While the "interesting" situation is 
a deprecation warning at the use site (@T @T), a warning is also due at 
the declaration site for T because of TC.class. I will not say "No 
warnings are required for the declarations of T and TC" in the text.

> By the way, javac b108 doesn't issue the use on repeated use of T, as
> in my original example. One for the compiler-dev list?

Yes, or file a bug at bugs.openjdk.java.net in the tools/javac areas.

Alex


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