RFR: 7904083: Print fatal error messages to stderr [v4]

Christian Stein cstein at openjdk.org
Wed Jan 28 15:40:14 UTC 2026


On Wed, 28 Jan 2026 07:42:26 GMT, SendaoYan <syan at openjdk.org> wrote:

>> Hi all,
>> 
>> Currently the fatal error message was print to stderr, shows as below. I think it's bettor to print the fatal error message to stderr.
>> 
>>> unset JAVA_HOME ; jtreg -version
>> No java executable at java
>> 
>>> unset JAVA_HOME ; jtreg -version > /dev/null
>> #nothing
>> 
>> The `>&2` usage for echo both works on linux and cygwin. I do not have other OS system to verify this change, but I think the risk of this change is low.
>
> SendaoYan has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:
> 
>  - Merge branch 'openjdk:master' into stderr
>  - Merge branch 'openjdk:master' into stderr
>  - Merge branch 'openjdk:master' into stderr
>  - 7904083: Print fatal error messages to stderr

> [CODETOOLS-7904083](https://bugs.openjdk.org/browse/CODETOOLS-7904083): Print fatal error messages to stderr (Enhancement - P4) ⚠️ Issue is not open.

Please also close this PR after closing the underlying issue.

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

PR Comment: https://git.openjdk.org/jtreg/pull/290#issuecomment-3812014604


More information about the jtreg-dev mailing list