-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
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.
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.
- relates to
-
JDK-8145471 javac changes for enhanced deprecation
-
- Closed
-