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

doclint does not check type variables for @throws

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • tools
    • b102
    • Verified

      (Reported by Brian Burkhalter)

      $ /opt/jdk/1.8.0/bin/javadoc /w/jjg/work/tl/jdk/src/share/classes/java/util/Optional.java
      Loading source file /w/jjg/work/tl/jdk/src/share/classes/java/util/Optional.java...
      Constructing Javadoc information...
      Standard Doclet version 1.8.0-ea
      Building tree for all the packages and classes...
      Generating ./java/util/Optional.html...
      /w/jjg/work/tl/jdk/src/share/classes/java/util/Optional.java:97: warning: no @param for <T>
          public static <T> Optional<T> of(T value) {
                                        ^
      /w/jjg/work/tl/jdk/src/share/classes/java/util/Optional.java:176: error: reference not found
           * @throws X if there is no value present
             ^
      /w/jjg/work/tl/jdk/src/share/classes/java/util/Optional.java:180: warning: no @throws for X
          public <X extends Throwable> T orElseThrow(Supplier<? extends X> exceptionSupplier) throws X {
                                         ^
      Generating ./java/util/package-frame.html...
      Generating ./java/util/package-summary.html...
      Generating ./java/util/package-tree.html...
      Generating ./constant-values.html...
      Building index for all the packages and classes...
      Generating ./overview-tree.html...
      Generating ./index-all.html...
      Generating ./deprecated-list.html...
      Building index for all classes...
      Generating ./allclasses-frame.html...
      Generating ./allclasses-noframe.html...
      Generating ./index.html...
      Generating ./help-doc.html...
      1 error
      2 warnings

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

              Created:
              Updated:
              Resolved: