RFR: 8352896: LambdaExpr02.java runs wrong test class [v3]

Jan Lahoda jlahoda at openjdk.org
Fri Mar 28 12:37:10 UTC 2025


On Fri, 28 Mar 2025 12:17:22 GMT, Zihao Lin <duke at openjdk.org> wrote:

>> Fix LambdaExpr02.java runs wrong test class.
>
> Zihao Lin has refreshed the contents of this pull request, and previous commits have been removed. Incremental views are not available. The pull request now contains one commit:
> 
>   8352896: LambdaExpr02.java runs wrong test class

I don't have a very strong preference between nothing, `@run main <testname>` and:

@compile <testname>.java
@run main <testname>


The latter is sometime good specifically for javac, as it forces compilation, and that is desirable while developing javac (because for `@build`/`@run main`, it may happen an updated javac is not used to compile the given test, as the test is already compiled).

But, that's not strong enough to alter long-existing test headers. So, keeping things more or less as they are, and consistent across the directory seems good.

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

Marked as reviewed by jlahoda (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/24277#pullrequestreview-2725378845


More information about the compiler-dev mailing list