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

javac does not handle @deprecated tag in package-info.java

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Supposing a package is being deprecated using a package-info.java file as follows:
      /**
       * Test pkg1 used.
       * @deprecated This package is Deprecated.
       */
      package pkg1;

      The deprecated flag in javac does not seem to be reflecting this, thus Elements.isDeprecated(pkginfo) will return false.

      Note: when this bug is fixed langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/Utils.java::isDeprecated(Element e) method needs to be cleaned up

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sadayapalam Srikanth Adayapalam
                Reporter:
                ksrini Kumar Srinivasan
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: