RFR: 8316340: (bf) Missing {@inheritDoc} for exception in MappedByteBuffer::compact

Brian Burkhalter bpb at openjdk.org
Tue Feb 13 19:11:24 UTC 2024


On Tue, 13 Feb 2024 19:06:06 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Explicitly add a throws clause for `ReadOnlyBufferException` to the specification of `MappedByteBuffer.compact`.

The specifications of the other methods in the various `Buffer` classes which mutate the data do not appear to have omitted any other instance of `ReadOnlyBufferException`. It was verified manually that `MappedByteBuffer.compact` does in fact throw a `ReadOnlyBufferException` if the buffer is is not writable.

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

PR Comment: https://git.openjdk.org/jdk/pull/17835#issuecomment-1942205693


More information about the nio-dev mailing list