On Wed, 14 May 2025 17:57:36 GMT, Markus KARG <d...@openjdk.org> wrote:

>> BTW, it will not fail with OOME, but it should throw IOE in that case.
>
> BTW, it will *already* throw OOME as-is, *because* it returns a `String` even 
> if the Reader is attached to an infinite source.

Maybe a good idea at this point if @mkarg could provide an example of server 
code benefitting from returning a CharSequence...

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24728#discussion_r2089484458

Reply via email to