RFR: 8360045: StringTokenizer.hasMoreTokens() throws NPE after nextToken(null)

Alan Bateman alanb at openjdk.org
Tue Jun 24 06:22:28 UTC 2025


On Mon, 23 Jun 2025 20:14:36 GMT, Naoto Sato <naoto at openjdk.org> wrote:

> Fixing the side-effect caused by calling `StringTokenizer.nextToken(null)`, where the delimiter is set to `null` even if the method throws an NPE.

Marked as reviewed by alanb (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/25942#pullrequestreview-2952322739


More information about the core-libs-dev mailing list