RFR: 7903981: Support easy way to use current class name for test actions [v4]
Christian Stein
cstein at openjdk.org
Wed Apr 9 05:59:53 UTC 2025
On Tue, 8 Apr 2025 18:36:11 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>> Christian Stein has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Base main entry-point name computation on file name
>
> src/share/classes/com/sun/javatest/regtest/exec/RegressionScript.java line 1202:
>
>> 1200: String packageName = packageMatcher.find() ? packageMatcher.group(1) + "." : "";
>> 1201: return Optional.of(packageName + className);
>> 1202: } catch (IOException ignored) {
>
> I think you can use "_" for the variable when its ignored, that seems to be the new convention (maybe only elsewhere) for unused variable.
As the base line of `jtreg` is still Java 11, we cannot use a single `_` to express intentionally unused variables.
-------------
PR Review Comment: https://git.openjdk.org/jtreg/pull/257#discussion_r2034501716
More information about the jtreg-dev
mailing list