On Thu, 9 Apr 2026 00:43:27 GMT, Naoto Sato <[email protected]> wrote:

> Or what if we "accept" null elements, which would be simply ignored? That 
> would avoid NPE crash.

I think of the options at hand, I'd learn towards enforcing NPE for null 
elements in `lookupTag` OR using the weakened specification proposed earlier. 
These seem to be the least intrusive options.

Accepting null elements would be behaviorally changing all of the 
lookup/filtering methods, since most of the methods do not already allow such 
elements (besides early match on lookupTag and the empty collection edge cases).

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

PR Comment: https://git.openjdk.org/jdk/pull/30632#issuecomment-4298617712

Reply via email to