On Fri, 5 Jun 2026 17:41:33 GMT, Naoto Sato <[email protected]> wrote:

>> Made changes to the invalid placeholder handling in 
>> `ListFormat.getInstance(String[])`, stemming from 
>> [JDK-8385736](https://bugs.openjdk.org/browse/JDK-8385736).
>> 
>> This rejects duplicate placeholders and `"{2}"` outside the `three` pattern, 
>> with spec and test updates. Also includes minor Javadoc formatting cleanups. 
>> The invalid-long-pattern test added with 
>> [JDK-8385736](https://bugs.openjdk.org/browse/JDK-8385736) has been 
>> repurposed to cover the newly specified invalid-placeholder cases, because 
>> the repeated-placeholder input is now rejected immediately by 
>> duplicate-placeholder validation.
>> 
>> Since this changes the behavior of the method, a corresponding CSR has been 
>> drafted.
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Naoto Sato has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Changed to 1-path search for placeholders

Marked as reviewed by jlu (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/31377#pullrequestreview-4438359893

Reply via email to