On Wed, 14 May 2025 17:56:44 GMT, Markus KARG <d...@openjdk.org> wrote:
>> As being a server developer for decades I need to say that I would love to >> have this not for convenience but for the performance reasons explained >> above, and that `int` length is perfect to speed up 99,9% of all cases. So >> we should not forget about `CharSequence` hastily. > > 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. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/24728#discussion_r2089465925