On Thu, 29 Oct 2026 19:22:13 GMT, Brent Christian <[email protected]> wrote:

> Per the bug report, this change specifies the current behavior for 
> `Properties.load()` when a key/value mapping is `load()`-ed for which the 
> Properties already contains a mapping, or a key/value mapping occurs more 
> than once in the `load()`-ed property list.
> 
> Once the wording of the spec update is agreed upon, I will copy it to the 
> `load(InputStream inStream)` overload, and submit the CSR.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

src/java.base/share/classes/java/util/Properties.java line 377:

> 375:      * <p>
> 376:      * If a key occurs more than once in the loaded property list, the
> 377:      * associated element is set to the value of the latest such 
> occurrence.

I think the following is clearer:

the associated element is set to the value of the **last occurrence**.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/33638#discussion_r4417147725

Reply via email to