RFR: 8317886: Add @sealedGraph to ByteBuffer

Per Minborg pminborg at openjdk.org
Thu Oct 12 13:54:33 UTC 2023


On Thu, 12 Oct 2023 11:54:53 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> Would it possible to include an image on how this looks? Asking because Buffer already has sealedGraph so shows the hierarchy. For ByteBuffer then presumably it will just show that MBB extends BB so I'm wondering if it's useful or not.

As you say, `Buffer` already has the tag, and because of that the JavaDoc of the class will include a graph:

<img width="1195" alt="image" src="https://github.com/openjdk/jdk/assets/7457876/dc31c0c2-3c89-4ab2-920e-f25a6cfbb441">

However, the tag works on a per-class basis and is not transitive. So ByteBuffer will not have a graph even though it and its permitted subclass MBB is rendered for the `Buffer` class.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/16142#issuecomment-1759573618


More information about the nio-dev mailing list