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

improve javac support for @Deprecated(forRemoval=true)

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • 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.

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

              Created:
              Updated: