JDK-8164826 : (jdeprscan) annotation processing cleanups
  • Type: Sub-task
  • Component: tools
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2016-08-26
  • Updated: 2018-09-11
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.
Other
tbdUnresolved
Description
Joe Darcy has suggested some code cleanups in the annotation processing area of jdeprscan, particularly in LoadProc.java. (These might also apply to TraverseProc.java.)

* Use javax.lang.model.util.ElementFilter instead of manual filtering.

* Instead of a switch on ElementKind, use javax.lang.model.util.ElementKindVisitor9.

* If an Element isn't a field, the code assumes it's a method or constructor, and casts it to ExecutableElement. This is javac-specific. Getting the kind and using a visitor is more robust.