Integrated: 8374434: Several JShell tests report JUnit discovery warnings
Jan Lahoda
jlahoda at openjdk.org
Thu Jan 8 07:04:04 UTC 2026
On Mon, 5 Jan 2026 12:00:52 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
> JShell tests where converted to use JUnit instead of TestNG by this commit:
> https://github.com/openjdk/jdk/commit/b0ca9bf61e0390a3b022a0915eacabb0cfd92e93
>
> As part of the conversion, the `@Test` annotation had to be copied from classes to test methods, as JUnit requires every test method to be annotated. Sadly the tool doing the conversion moved the annotation to some non-test methods as well. This PR fixes that. The tool has been fixed as well.
This pull request has now been integrated.
Changeset: e6abf98e
Author: Jan Lahoda <jlahoda at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/e6abf98e35079ed1b5547f2cc0ac6f518b78d67b
Stats: 7 lines in 3 files changed: 0 ins; 4 del; 3 mod
8374434: Several JShell tests report JUnit discovery warnings
Reviewed-by: jpai
-------------
PR: https://git.openjdk.org/jdk/pull/29034
More information about the compiler-dev
mailing list