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

Fix signature of StandardDoclet.getSupportedOptions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: tools
    • Labels:
      None

      Description

      The signature of Doclet.getSupportedOptions uses a wildcard in the return type.

      Set<? extends Doclet.Option> getSupportedOptions()

      There is an overriding method in StandardDoclet, but it incorrectly omits the wildcard, this providing a more restrictive return type.

      public Set<Doclet.Option> getSupportedOptions()

      Although this will be an API change, it will not affect existing clients or any subtypes.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jjg Jonathan Gibbons
              Reporter:
              jjg Jonathan Gibbons
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: