RFR: 8283417: Update java.nio buffers to use sealed classes
Brian Burkhalter
bpb at openjdk.java.net
Wed Mar 23 15:00:36 UTC 2022
On Wed, 23 Mar 2022 13:23:56 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> This change looks okay and has no real impact as buffer classes cannot be extended from code outside of the java.nio runtime package. An advantage of making the hierarchy sealed is that it will show up in the javadoc and that might those that show up periodically asking about extending these classes.
In this case then JDK-4850330 could be closed as a duplicate.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7907
More information about the nio-dev
mailing list