You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1b868f5
Browse filesBrowse the repository at this point in the historyBrowse files
Issue #145 mechanical package move jdk.sandbox to jdk.incubator
Mirror the upstream move of the JSON API from the jdk-sandbox into the
jdk.incubator.json module as a pure token swap, no API changes:
- git mv of jdk/sandbox source and test trees to jdk/incubator in
json-java21 and json-compatibility-suite (34 files, history preserved)
- global sed jdk.sandbox -> jdk.incubator and jdk/sandbox -> jdk/incubator
across java, md, html, yml, py, pom and properties files in all modules
- sync-process docs in json-java21/AGENTS.md and .github/copilot-instructions.md
now name the new packages; api-tracker still maps
jdk.incubator.java.util.json to the upstream raw path jdk/incubator/json
Verify: mvn -B clean verify -DskipITs=false -> BUILD SUCCESS, 1355 tests,
0 failures, 0 errors, 0 skipped (matches the CI test-count assertion).
Copy file name to clipboardExpand all lines: AGENTS.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -151,15 +151,15 @@ See `README.md` for user-facing commands. When running locally as an agent, use
151
151
-`json-java21-api-tracker`: API evolution tracking utilities.
152
152
-`json-compatibility-suite`: JSON Test Suite compatibility validation.
153
153
-`json-java21-jtd`: JSON Type Definition (JTD) validator based on RFC 8927.
154
-
-`json-java21-jsonpath`: JsonPath query engine over `jdk.sandbox.java.util.json` values.
154
+
-`json-java21-jsonpath`: JsonPath query engine over `jdk.incubator.java.util.json` values.
155
155
156
156
Only when you are asked to work on a specific module, start by reading that module's `README.md`, then its `AGENTS.md`.
157
157
158
158
These modules are treated as separate subsystems; do not read their docs unless you are actively working on them. They are not interlinked and each depends only on the core `json-java21` API.
159
159
160
160
### Core Components
161
161
162
-
#### Public API (`jdk.sandbox.java.util.json`)
162
+
#### Public API (`jdk.incubator.java.util.json`)
163
163
-`Json`: Static utilities for parsing, formatting, and conversion.
164
164
-`JsonValue`: Sealed root interface for all JSON types.
165
165
-`JsonObject`: JSON objects (key-value pairs).
@@ -169,14 +169,14 @@ These modules are treated as separate subsystems; do not read their docs unless
169
169
-`JsonBoolean`: JSON booleans.
170
170
-`JsonNull`: JSON null.
171
171
172
-
IMPORTANT: This API **MUST NOT** deviate from the upstream jdk.sandbox repo which is will track.
172
+
IMPORTANT: This API **MUST NOT** deviate from the upstream jdk.incubator repo which is will track.
-`Json*Impl`: Immutable implementations of `Json*` types.
177
177
-`Utils`: Internal utilities and factory methods.
178
178
179
-
IMPORTANT: Bugs in upstream-derived core logic MUST be fixed upstream. Do not patch `jdk.sandbox.*` sources in this repo unless the user explicitly agrees (for example, to carry a temporary local backport while the upstream fix is in progress).
179
+
IMPORTANT: Bugs in upstream-derived core logic MUST be fixed upstream. Do not patch `jdk.incubator.*` sources in this repo unless the user explicitly agrees (for example, to carry a temporary local backport while the upstream fix is in progress).
180
180
181
181
Only bugs in local, non-upstream code (for example, backporting shims/polyfills or other modules in this repo) should be fixed here using normal TDD.
@@ -307,7 +307,7 @@ The JSON compatibitlity tests in this repo suggest 99% conformance with a leadin
307
307
308
308
### CI: Upstream API Tracking
309
309
310
-
The `daily-api-tracker.yml` workflow runs daily at 02:00 UTC: it fetches the upstream `jdk.incubator.json` sources from the [jdk-sandbox `json` branch](https://github.com/openjdk/jdk-sandbox/tree/json) HEAD and compares public API signatures against the local `jdk.sandbox.java.util.json` classes. When they differ it creates a fingerprint-deduplicated "API drift detected" issue; reports are uploaded as workflow artifacts (`target/api-tracker/`) with 90-day retention. The check can also be run locally:
310
+
The `daily-api-tracker.yml` workflow runs daily at 02:00 UTC: it fetches the upstream `jdk.incubator.json` sources from the [jdk-sandbox `json` branch](https://github.com/openjdk/jdk-sandbox/tree/json) HEAD and compares public API signatures against the local `jdk.incubator.java.util.json` classes. When they differ it creates a fingerprint-deduplicated "API drift detected" issue; reports are uploaded as workflow artifacts (`target/api-tracker/`) with 90-day retention. The check can also be run locally:
<pclass="meta">Replace <code>*</code> with the actual version number from the JAR filename.</p>
229
229
230
230
<h2>JSON Test Suite Compatibility</h2>
@@ -237,7 +237,7 @@ <h2>JSON Test Suite Compatibility</h2>
237
237
<h2>JSON Type Definition (JTD) Validator</h2>
238
238
<pclass="meta">This repo includes an incubating JTD validator (RFC 8927) in module <code>json-java21-jtd</code>. Per RFC 8927, the empty schema <code>{}</code> accepts all JSON instances.</p>
0 commit comments