Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8164073 Javac should unconditionally warn if deprecated javadoc tag is used without @Deprecated annotation
  3. JDK-8177371

Release Note: Compiler will emit a warning if deprecated javadoc tag is used without @Deprecated annotation

XMLWordPrintable

    • Verified

      If the javadoc deprecated tag is used on an element without it also being deprecated using the @Deprecated annotation,
      the compiler will by default produce a new warning to this effect.

      The new warning can be suppressed either by adding the command line option -Xlint:-dep-ann to the javac command line or by using
      @SuppressWarnings("dep-ann") annotation (as with any other warning-suppressing annotation, it is always a good practice to add
      such an annotation as close to the member being deprecated as possible).

      In a future version of Java SE, the compiler may no longer treat @deprecated javadoc tag as indicating formal deprecation.

       

            sadayapalam Srikanth Adayapalam (Inactive)
            mtrudeau Michel Trudeau
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: