RFR: 8344942: Template-Based Testing Framework [v7]

Emanuel Peter epeter at openjdk.org
Wed May 7 11:50:23 UTC 2025


On Wed, 7 May 2025 08:57:18 GMT, Christian Hagedorn <chagedorn at openjdk.org> wrote:

>> Emanuel Peter has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   typo
>
> test/hotspot/jtreg/testlibrary_tests/template_framework/examples/TestAdvanced.java line 159:
> 
>> 157:             new Type("long",   () -> GEN_LONG.next(),   List.of("+", "-", "*", "&", "|", "^")),
>> 158:             new Type("float",  () -> GEN_FLOAT.next(),  List.of("+", "-", "*", "/")),
>> 159:             new Type("double", () -> GEN_DOUBLE.next(), List.of("+", "-", "*", "/"))
> 
> You can directly use `GEN_X::next` instead of `() -> GEN_X.next()`.

Ah thanks, nice simplification!

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24217#discussion_r2077446307


More information about the hotspot-compiler-dev mailing list