RFR: 8273187: jtools tests fail with missing markerName check

Serguei Spitsyn sspitsyn at openjdk.java.net
Fri Sep 17 17:42:48 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.

Marked as reviewed by sspitsyn (Reviewer).


PR: https://git.openjdk.java.net/jdk/pull/5539

More information about the core-libs-dev mailing list