Integrated: 8360045: StringTokenizer.hasMoreTokens() throws NPE after nextToken(null)
Naoto Sato
naoto at openjdk.org
Wed Jun 25 16:05:33 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.
This pull request has now been integrated.
Changeset: 74472764
Author: Naoto Sato <naoto at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/744727647564ee79349380eb819fefc81ca7dc3a
Stats: 48 lines in 2 files changed: 47 ins; 0 del; 1 mod
8360045: StringTokenizer.hasMoreTokens() throws NPE after nextToken(null)
Reviewed-by: liach, alanb
-------------
PR: https://git.openjdk.org/jdk/pull/25942
More information about the core-libs-dev
mailing list