Loading... (original) (raw)

Semantically the arrays used in the "SupportedFoo" annotations read by AbstractProcessor should hold values that are non-repeated; i.e. could be a set. As a diagnostic aid, it would be helpful if the AbstractProcessor issued a warning if a repeated element was found since it is likely to be a programming error.

relates to

Enhancement - null JDK-8224177 Harden annotation processing framework to irregular behavior from processors

JEP - Java Enhancement Proposal JDK-8048330 JEP 269: Convenience Factory Methods for Collections