Improve error message when @Deprecated is not used with @deprecated

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 9
    • Component/s: tools

      During work for JDK-8068463 for creation of golden files for negative tests, it was discovered that the error message can be improved when Deprecated annotation is not used with javadoc's deprecated annotation.

      Test:
      tools/javac/annotations/neg/Dep.java

      Current error key:
      compiler.warn.missing.deprecated.annotation

      Improved error message:
      item with @deprecated javadoc tag is not annotated with @Deprecated

            Assignee:
            Unassigned
            Reporter:
            Sonali Goel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: