JDK-8146726 : Improve AbstractProcessor to issue warnings for repeated information
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: javax.annotation.processing
  • Affected Version: 10
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-01-09
  • Updated: 2019-05-19
  • Resolved: 2019-05-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 13
13 b20Fixed
Related Reports
Relates :  
Relates :  
Description
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.
Comments
Review thread: http://mail.openjdk.java.net/pipermail/compiler-dev/2017-October/011268.html Second review thread: http://mail.openjdk.java.net/pipermail/compiler-dev/2018-November/012674.html Third review thread: https://mail.openjdk.java.net/pipermail/compiler-dev/2019-April/013263.html
25-04-2019