Integrated: 8377601: JavacTemplateTestBase not reporting javac crashes

Chen Liang liach at openjdk.org
Wed Feb 11 23:47:12 UTC 2026


On Tue, 10 Feb 2026 20:31:30 GMT, Chen Liang <liach at openjdk.org> wrote:

> JavacTemplateTestBase does not fail if javac crashes. A javac crash is not reflected in the diagnostics, but rather printed in System.err, which can be redirected. We should redirect that stream and ensure that stream is empty for our test cases.
> 
> This test framework bug is discovered during project valhalla bworld prototype development in https://github.com/openjdk/valhalla/pull/2075

This pull request has now been integrated.

Changeset: 370929f8
Author:    Chen Liang <liach at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/370929f8268a859071d111f44ad1cb6fbceb31d7
Stats:     11 lines in 1 file changed: 3 ins; 5 del; 3 mod

8377601: JavacTemplateTestBase not reporting javac crashes

Reviewed-by: vromero

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

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


More information about the compiler-dev mailing list