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

"-nohelp" option issue

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: tools
    • Subcomponent:
    • Resolved In Build:
      b104
    • Verification:
      Verified

      Description

      Attempt to use the "-nohelp" option leads to the following error:
      "javadoc: error - Option -nohelp conflicts with -helpfile"

      The reason is the inappropriate variable initialization (jdk.javadoc.internal.doclets.formats.html.ConfigurationImpl.validateOptions()):

           /**
           * Argument for command line option "-helpfile".
           */
          public String helpfile = "";

      ..............

          protected boolean validateOptions() {

      ..............

              } else if (opt.matches("-nohelp")) {
                      if (helpfile != null) {
                          reporter.print(ERROR, getText("doclet.Option_conflict",
                              "-nohelp", "-helpfile"));
                          return false;
                      }
                  }

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: