"-helpfile" option issue

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: tools
    • b104
    • Verified

      Attempt to use the "-helpfile" option leads to the following error:
      javadoc: error - Option reused: -helpfile

      The reason is the inappropriate value checking for null after correct initialization of the "helpfile" variable (jdk.javadoc.internal.doclets.formats.html.ConfigurationImpl.validateOptions()):

      ..............
          protected boolean validateOptions() {
      ..............
              if (opt.matches("-helpfile")) {
      ..............
                  if (this.helpfile != null) {
                      reporter.print(ERROR, getText("doclet.Option_reuse",
                          "-helpfile"));
                      return false;
                  }

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

              Created:
              Updated:
              Resolved: