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

spurious "extends Throwable" at end of Optional.orElseThrow method declaration

XMLWordPrintable

    • b18
    • generic
    • generic
    • Not verified

        A DESCRIPTION OF THE PROBLEM :
        https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html#orElseThrow-java.util.function.Supplier-
        There is a superfluous string of "extends Throwable" at end of method declaration in the above section of the doc.
        Also at end of that same section, "X extends Throwable" appears yet again (after "NullPointerException - if no value is present and exceptionSupplier is null"), which is invalid.

        REGRESSION : Last worked in version 8

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Look at docs at the above URL, for Java versions 8 through 10 inclusive.


        FREQUENCY : always


              jjg Jonathan Gibbons
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: