arxhr007 commented on PR #24099: URL: https://github.com/apache/kafka/pull/24099#issuecomment-6740659496
Thanks for the review, @AndrewJSchofield. I took your point and pushed an update: - `getNullableArray` is back to its original behaviour (`-1` returns null, other negative sizes still throw `NegativeArraySizeException`). I also reverted the `getNullableSizePrefixedArrayInvalid` test change. - `toArray` and `readBytes` now throw `IllegalArgumentException` for a negative size. `BufferUnderflowException` is only used when the read goes past the available data. - Tests updated to match, and the PR description now reflects the narrower change. `UtilsTest` passes locally except `testFileAsStringNamedPipe`, which needs a POSIX named pipe and fails on my Windows machine. Checkstyle and spotless are clean. The earlier red Java 25 job was a 3.5h timeout plus a build-scan publish failure, so I expect the re-run to be clean. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
