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

SendaoYan syan at openjdk.org
Mon Nov 24 05:54:04 UTC 2025


> 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 two additional commits since the last revision:

 - Merge branch 'openjdk:master' into stderr
 - 7904083: Print fatal error messages to stderr

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

Changes:
  - all: https://git.openjdk.org/jtreg/pull/290/files
  - new: https://git.openjdk.org/jtreg/pull/290/files/1b27919a..04d2135e

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jtreg&pr=290&range=01
 - incr: https://webrevs.openjdk.org/?repo=jtreg&pr=290&range=00-01

  Stats: 161 lines in 12 files changed: 86 ins; 32 del; 43 mod
  Patch: https://git.openjdk.org/jtreg/pull/290.diff
  Fetch: git fetch https://git.openjdk.org/jtreg.git pull/290/head:pull/290

PR: https://git.openjdk.org/jtreg/pull/290


More information about the jtreg-dev mailing list