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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 9
    • 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

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

              Created:
              Updated:
              Resolved: