RFR: 8377568: DataBuffer constructors and methods do not specify required exceptions [v4]

Sergey Bylokhov serb at openjdk.org
Wed Feb 18 07:35:10 UTC 2026


On Wed, 18 Feb 2026 05:39:47 GMT, Phil Race <prr at openjdk.org> wrote:

> You get a valid DataBuffer but there isn't a normal use for it.,

Yes, calling any methods on it will cause an exception, right? In that case, we should probably reject it? Or are there cases where an empty data buffer could actually be useful?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29766#discussion_r2820781114


More information about the client-libs-dev mailing list