RFR: 8295653: Add a graph of the sealed class hierarchy for marked classes [v4]
Andrey Turbanov
aturbanov at openjdk.org
Tue Oct 25 09:35:39 UTC 2022
On Mon, 24 Oct 2022 20:44:08 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.
>
> Magnus Ihse Bursie has updated the pull request incrementally with one additional commit since the last revision:
>
> Rename sealedGraphDotPath to sealedDotOutputDir
make/jdk/src/classes/build/tools/taglet/SealedGraph.java line 102:
> 100: String dotContent = Renderer.graph(typeElement, exports);
> 101:
> 102: try (PrintWriter pw = new PrintWriter(dotFile.toFile())) {
Can `Files.writeString` be used instead?
-------------
PR: https://git.openjdk.org/jdk/pull/10761
More information about the build-dev
mailing list