On Sun, 1 Nov 2026 15:08:42 GMT, errael <[email protected]> wrote:

> Duplicate `key` detection, or `key`/`value` validation, with `Properties` is 
> possible by overriding the `put` method. Could that be explicitly specified?

I don't think we should go as far as to codify the current implementation of 
`load()` (for instance by stating something like, "the `put()` method is called 
for each load()ed key/element pair.").

Overriding `put()` for performing validation and/or dup detection may happen to 
work at present, but I would not consider it future-proof.

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

PR Comment: https://git.openjdk.org/jdk/pull/33638#issuecomment-6640609987

Reply via email to