RFR: 8344942: Template-Based Testing Framework [v9]
Emanuel Peter
epeter at openjdk.org
Wed May 7 12:26:27 UTC 2025
On Wed, 7 May 2025 12:21:28 GMT, Emanuel Peter <epeter at openjdk.org> wrote:
>> test/hotspot/jtreg/testlibrary_tests/template_framework/examples/TestTutorial.java line 98:
>>
>>> 96: System.out.println("Hello World!");
>>> 97: """,
>>> 98: "int a = ", Integer.valueOf(1), ";\n",
>>
>> Might be better to use `System.lineSeparator()` instead of `\n` to be platform independent.
>
> Hmm. You may be right. But then again, this also worked on Windows... what platform would it even fail on?
Plus, it is really clunky to use the much longer `System.lineSeparator()` 🙈
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24217#discussion_r2077502445
More information about the hotspot-compiler-dev
mailing list