On Mon, 23 Jun 2025 21:21:44 GMT, ExE Boss <d...@openjdk.org> wrote: > Note that as mentioned in the bug discussion, the same also occurs when doing > `new StringTokenizer("some string", (String) null)`.
Right, and it's super weird, but seems to have been specified since JDK 5 to defer the NPE to later. I don't know if anything depends on that behavior but would be risky to change it now. ------------- PR Comment: https://git.openjdk.org/jdk/pull/25942#issuecomment-2998968220