git: openjdk/jdk-sandbox: json: 3 new changesets

duke duke at openjdk.org
Tue Mar 11 21:07:06 UTC 2025


Changeset: ae07b61d
Branch: json
Author:    Justin Lu <justin.lu at oracle.com>
Date:      2025-03-11 11:01:49 +0000
URL:       https://git.openjdk.org/jdk-sandbox/commit/ae07b61def5568b05194c2c7afea6475bfcb2292

Move exception handling for out of bounds offset to parser side

! src/java.base/share/classes/java/util/json/JsonDocumentInfo.java
! src/java.base/share/classes/java/util/json/JsonParser.java
! test/jdk/java/util/json/TestParseException.java

Changeset: a1806fc3
Branch: json
Author:    Justin Lu <justin.lu at oracle.com>
Date:      2025-03-11 14:01:07 +0000
URL:       https://git.openjdk.org/jdk-sandbox/commit/a1806fc30c4b97e2cb5502b4b3d5725dbe259c92

Provide tests for all exception messages

! test/jdk/java/util/json/TestParse.java
! test/jdk/java/util/json/TestParseException.java

Changeset: 4586ec66
Branch: json
Author:    Justin Lu <justin.lu at oracle.com>
Date:      2025-03-11 14:01:19 +0000
URL:       https://git.openjdk.org/jdk-sandbox/commit/4586ec66c4e4ea1005d3786c20761260ca10f6e9

Refactor some parsing logic in obj/arr. Allow more input for parseNumber to provide better exceptions. Adjust some exception messages.

! src/java.base/share/classes/java/util/json/JsonParser.java



More information about the jdk-sandbox-changes mailing list