Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8168454

improve javac support for @Deprecated(forRemoval=true)

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd_major
    • Component/s: tools
    • Labels:

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: