> 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:

  test mod

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/31377/files
  - new: https://git.openjdk.org/jdk/pull/31377/files/45690d9b..403e62e7

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=31377&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=31377&range=00-01

  Stats: 19 lines in 1 file changed: 0 ins; 0 del; 19 mod
  Patch: https://git.openjdk.org/jdk/pull/31377.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/31377/head:pull/31377

PR: https://git.openjdk.org/jdk/pull/31377

Reply via email to