RFR: 8295653: Add a graph of the sealed class hierarchy for marked classes
Jonathan Gibbons
jjg at openjdk.org
Wed Oct 19 18:15:58 UTC 2022
On Wed, 19 Oct 2022 11:17:07 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:
> It would be possible to mark classes with `@sealedGraph` to indicate that the sealed hierarchy should be rendered graphically in the JavaDocs. Classes not marked would be unaffected, creating an opt-in approach.
>
> [Here](https://bugs.openjdk.org/secure/attachment/101126/Screen%20Shot%202022-10-19%20at%2012.47.47%20PM.png) is an example of MemoryLayout class rendering.
>
> This feature has been developed in cooperation with Per Minborg.
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/resources/stylesheet.css line 855:
> 853: margin: -100px 0 0 100px;
> 854: z-index: 1;
> 855: }
These lines could be merged with the preceding lines, using the `,` syntax
-------------
PR: https://git.openjdk.org/jdk/pull/10761
More information about the build-dev
mailing list