RFR: 8222329: Readable read(CharBuffer) does not specify that 0 is returned when there is no remaining space in buffer [v2]

Roger Riggs rriggs at openjdk.org
Thu Jun 22 21:41:03 UTC 2023


On Thu, 22 Jun 2023 21:25:32 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> For a buffer that is being written into, it sounds a bit odd to say "no remaining elements"; that phrasing is ok for reading/getting bytes but doesn't sound like there's free space to put anything.
>> 
>> Would "no remaining free elements" or "no remaining available elements" be better?
>
> Or "no remaining space" / "no space remaining"?

I have a slight preference for "no space remaining"; remaining can still be a linkplain to the method if that helps it be specific.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14616#discussion_r1239054873


More information about the nio-dev mailing list