RFR: 7903727: Remove the reliance on String Templates feature [v3]

Nizar Benalla nbenalla at openjdk.org
Sat Jun 1 18:50:13 UTC 2024


On Sat, 1 Jun 2024 18:46:23 GMT, Nizar Benalla <nbenalla at openjdk.org> wrote:

>> This PR aims to replace the usage of string templates with `String::format`, since there will be no string template feature in JDK 23.
>> I tried to keep similar indentation and convert them in-place, to make reviewing the changes easier.
>
> Nizar Benalla has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Added number references to arguments

I hope this approach is more readable.
I used `MessageFormat` sparsely, only when the same argument was references multiple times. As code fragments have a lot of curly braces, having to escape them each time it hurt readability.

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

PR Comment: https://git.openjdk.org/jextract/pull/244#issuecomment-2143546945


More information about the jextract-dev mailing list