Integrated: 8273187: jtools tests fail with missing markerName check
Naoto Sato
naoto at openjdk.java.net
Mon Sep 20 13:43:01 UTC 2021
On Thu, 16 Sep 2021 01:08:45 GMT, Naoto Sato <naoto at openjdk.org> wrote:
> Fixing failing regression tests caused by the JEP 400: UTF-8 by Default.
>
> `JcmdOutputEncodingTest` test case uses `file.encoding=UTF-8` in `C` locale. The output from the agent library is in `UTF-8` so it succeeded before the JEP has been implemented, as System.out used `UTF-8` converter. After the JEP, it started failing because System.out is using `US-ASCII` which generates series of '?', ending up with assertion failure in the test.
>
> The proposed fix is to pass `sun.stdout.encoding=UTF-8` as well as `file.encoding` so that tool process' System.out is in `UTF-8` as well.
This pull request has now been integrated.
Changeset: f71df142
Author: Naoto Sato <naoto at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/f71df142a97f522b40e90c3105e0e5bd8d5af9a2
Stats: 10 lines in 3 files changed: 3 ins; 4 del; 3 mod
8273187: jtools tests fail with missing markerName check
Reviewed-by: iris, sspitsyn, joehw
-------------
PR: https://git.openjdk.java.net/jdk/pull/5539
More information about the serviceability-dev
mailing list