)]}'
{
  "commit": "68276ff17a725bf38b6f4ac8404f2ae083132cd2",
  "tree": "ef77162dc9ce9a86a7417bc2d26503178c4456f1",
  "parents": [
    "23b04041c670a94508c2527ab837559013425623"
  ],
  "author": {
    "name": "shahan",
    "email": "shahan@google.com",
    "time": "Thu Nov 19 08:37:57 2026 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Thu Nov 19 08:39:46 2026 -0800"
  },
  "message": "Open the `java.base` packages that `DynamicCodec` will access via `MethodHandle`s.\n\n`DynamicCodec` currently reads and writes fields with `sun.misc.Unsafe`, which ignores module boundaries. The upcoming bytecode-generated `DynamicCodec` instead uses `FieldAccessUtils`, which calls `Field.setAccessible(true)`. For non-public fields in `java.base`, that requires the declaring package to be opened to the unnamed module, or it throws `InaccessibleObjectException`.\n\nAdd `add_opens` for `java.io`, `java.lang`, `java.time`, and `java.util.concurrent.atomic`, which declare fields of the JDK classes `AutoRegistry` registers (`IOException` and `FileNotFoundException` via `Throwable`, `StackTraceElement`, `Instant`, `AtomicReference`, and `AtomicReferenceArray`).\n\nAdd `RegisteredClassFieldAccessTest`, which reads every serializable field of every class registered for `DynamicCodec` through `FieldAccessUtils`, so a missing `add_opens` fails in tests rather than at runtime. To share the field-selection rule, `DynamicCodec.getSerializableFields` becomes package-private.\n\nPiperOrigin-RevId: 1025621094\nChange-Id: If1f9b77ae32c591181a5ce81a6bc6f7f57021efb\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c663649f1e7e82c24e5c37f7305ce51127a516d1",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/skyframe/serialization/BUILD",
      "new_id": "72986e5911f93e8bb0bc1cd91e79b23f5752c5e2",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/skyframe/serialization/BUILD"
    },
    {
      "type": "modify",
      "old_id": "131707205e6ed2d7e290d300475238592110d0b3",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/skyframe/serialization/DynamicCodec.java",
      "new_id": "9cbac78bfff3375a0f259debfdc7bc9eef5396fe",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/skyframe/serialization/DynamicCodec.java"
    }
  ]
}
