JDK-8168454 : improve javac support for @Deprecated(forRemoval=true)
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2016-10-21
  • Updated: 2016-10-24
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
tbd_majorUnresolved
Related Reports
Relates :  
Description
The current impl of javac support for @Deprecated(forRemoval=true)  JDK-8145471 relies on analyzing the AST for "forRemoval=true" and as such, requires the specific use of the literal "true", and not a more general constant expression.

It would be good to remove this restriction, but doing so will require changing how javac processes @Deprecated annotations. In particular, the generation of any warnings would have to be deferred until after annotations have been analysed.