On Fri, 16 Oct 2026 05:19:50 GMT, Benjamin Peterson <[email protected]> wrote:
> The branch removed here is dead because `read()` should never return `0` if > `remaining > 0`. The dead code also had a bug: Casting the `int` result of > `read()` to `byte` is wrong when the result is 255. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). This is already being looked into in https://bugs.openjdk.org/browse/JDK-8387022 and has been assigned. ------------- PR Comment: https://git.openjdk.org/jdk/pull/33401#issuecomment-6208965940
