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

Fix signature of StandardDoclet.getSupportedOptions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 15
    • 15
    • tools
    • None

      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.

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

              Created:
              Updated:
              Resolved: