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

Unreachable code in jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter.seeTagToContent()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P5
    • Resolution: Not an Issue
    • Affects Version/s: 9
    • Fix Version/s: None
    • Component/s: tools
    • Labels:

      Description

      Unreachable code in jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter.seeTagToContent():

      if (ch.getText(see).trim().startsWith("#") &&
                      ! (utils.isPublic(containing) || utils.isLinkable(containing))) {
                      // Since the link is relative and the holder is not even being
                      // documented, this must be an inherited link. Redirect it.
                      // The current class either overrides the referenced member or
                      // inherits it automatically.
                      if (this instanceof ClassWriterImpl) {
                          containing = ((ClassWriterImpl) this).getTypeElement();
                      } else if (!utils.isPublic(containing)) {
                          configuration.getDocletSpecificMsg().warning(
                              ch.getDocTreePath(see), "doclet.see.class_or_package_not_accessible",
                              tagName, utils.getFullyQualifiedName(containing));
                      } else {

      // Unreachable code, if "utils.isPublic(containing)" is true the outer condition can not be satisfied

                          configuration.getDocletSpecificMsg().warning(
                              ch.getDocTreePath(see), "doclet.see.class_or_package_not_found",
                              tagName, seetext);
                      }
                  }

        Attachments

          Activity

            People

            Assignee:
            ksrini Kumar Srinivasan
            Reporter:
            ogb Oleg Barbashov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: