On Fri, 10 Apr 2026 19:59:15 GMT, Alexey Ivanov <[email protected]> wrote:

> > Possibly discussed before, but I missed why we do not want to update 
> > DataBuffer class as well, to ensure any subclasses are validated?

This PR is only concerned with the JDK concrete classes. 

> 
> Should `DataBuffer` be a **sealed** class? 

No. For multiple reasons. Including compatibility and extensibility by non-JDK 
classes.
The latter reason means that even if sealed classes were available when this 
was designed it would not have been one.

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

PR Comment: https://git.openjdk.org/jdk/pull/29766#issuecomment-4230688092

Reply via email to