On Tue, 13 Jan 2026 13:15:00 GMT, Anupam Dev <[email protected]> wrote:

> Hi,
> 
> new String(b, 0, n) looks at the operating system's default locale. If these 
> differ between the build machine and the test runner, tests can fail.
> StandardCharsets.UTF_8 is guaranteed to be available on all Java platforms.
> 
> Since "ERROR" and "Exception" are ASCII characters, and ASCII is a subset of 
> UTF-8, this will correctly match the tokens regardless of the underlying 
> platform's obscure defaults.
> 
> Kindly review.
> 
> Regards,
> Anupam

This pull request has been closed without being integrated.

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

PR: https://git.openjdk.org/jdk/pull/29190

Reply via email to