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

"-helpfile" option issue

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • 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;
                  }

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

              Created:
              Updated:
              Resolved: