RFR: 8374434: Several JShell tests report JUnit discovery warnings [v2]

Jaikiran Pai jpai at openjdk.org
Wed Jan 7 13:53:33 UTC 2026


On Wed, 7 Jan 2026 13:49:19 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.
>
> Jan Lahoda has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Updating copyright years.

Marked as reviewed by jpai (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/29034#pullrequestreview-3634980568


More information about the compiler-dev mailing list