Opportunistic coin improvements for JDK8: Can those be tracked someplace? (Any annotation in annotations)

Reinier Zwitserloot reinier at zwitserloot.com
Wed Oct 19 19:58:45 PDT 2011


A minor update to annotations is on the 'hey, maybe we can get around to it
for 8' list, to be specific: Allowing the same annotation to show up
multiple times on the same node.

If annotations are being looked at anyway, I'd love to be able to add
"Annotation" and "Annotation[]" to the list of legal return types for an
annotation method declaration. The valid constants that can be used for
these are _any_ annotation, i.e.:

@OnMethod({@SuppressWarnings("all"), @Generated})
private final int foo; // An annotation processor will generate a new file
with a method based on this field.


It seems like a pretty low-impact change, but without a coin process I'm not
sure I should bother putting in the effort to write it up and make a javac
patch. If there's more clarity that annotations are going to go through some
changes anyway, will there still be enough time for me to cook up a patch so
it can be considered?

 --Reinier Zwitserloot



More information about the coin-dev mailing list