RFR: JDK-8253700: spurious "extends Throwable" at end of Optional.orElseThrow method declaration
Pavel Rappo
prappo at openjdk.java.net
Wed Sep 30 08:06:17 UTC 2020
On Tue, 29 Sep 2020 23:47:37 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:
> The link for the `throws` type was not filtering out the bounds. A new `LinkInfoImpl.Kind` is added for `THROWS_TYPE`.
>
> The loop to generate the list of exceptions is simplified.
>
> A new test is provided. The generated API for `Optional.orElseThrow` has also been verified as correct.
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/AbstractExecutableMemberWriter.java line 265:
> 263: }
> 264: Content link = writer.getLink(new LinkInfoImpl(configuration, THROWS_TYPE, t));
> 265: htmlTree.add(link);
This reminds of the 8238966: Use a better way of joining things together.
-------------
PR: https://git.openjdk.java.net/jdk/pull/417
More information about the javadoc-dev
mailing list