On Sun, 18 Feb 2024 10:56:47 GMT, Eirik Bjørsnøs <eir...@openjdk.org> wrote:

> Thanks for your review Alan!
> 
> > The hazard when the format specifiers are all %s.
> 
> Not sure I understand your comment since all arguments are of the same type 
> (int) anyhow, I guess they would still be easy to get wrong or in the wrong 
> order. Was that the hazard you refer to?

Yes, it's easy to get a silent mismatch. In this case, the first message 
printed by testByteArray, the second parameter should have been the Adler but 
it was actually printing the number of bytes written. You've fixed it, and 
switched to %d, so all good.

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

PR Comment: https://git.openjdk.org/jdk/pull/17901#issuecomment-1951892484

Reply via email to