RFR: 7904141: JTReg should support running compact source files [v6]

Jaikiran Pai jpai at openjdk.org
Wed Feb 18 15:20:02 UTC 2026


On Mon, 16 Feb 2026 09:05:50 GMT, Christian Stein <cstein at openjdk.org> wrote:

>> Please review this change that adds support for running [JEP 512: Compact Source Files and Instance Main Methods](https://openjdk.org/jeps/512) as jtreg `main` tests.
>> 
>> This pull request also adds JDK 25 to the GHA-based CI workflow and updates to use newer GitHub actions: `actions/checkout at v6` and `actions/setup-java at v5`
>
> Christian Stein has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Environment variable already exported

src/share/classes/com/sun/javatest/regtest/agent/MainActionHelper.java line 190:

> 188:             }
> 189: 
> 190:             Method method = MainMethodHelper.isCompactSourceFileAndInstanceMainMethodSupported()

I think it might be better to reduce the length of that method name to something like `isModernMainSupported()` and then add a brief javadoc comment on `MainMethodHelper.isModernMainSupported()` that this is about compact source files and instance main methods.

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

PR Review Comment: https://git.openjdk.org/jtreg/pull/313#discussion_r2822856624


More information about the jtreg-dev mailing list