improve javac support for @Deprecated(forRemoval=true)

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: None
    • Component/s: tools

      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.

            Assignee:
            Unassigned
            Reporter:
            Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: