)]}'
{
  "commit": "45061b38c54f4ee8e3038601c5d857154c7ae9db",
  "tree": "3f654c6af5f173b7b66d1d8f896853b3a3c35e04",
  "parents": [
    "c0462f09c1a6f7607d5d6b86ba291746fd003a86"
  ],
  "author": {
    "name": "Krishna Magar",
    "email": "magarkrishna2564@gmail.com",
    "time": "Thu Aug 07 04:59:43 2025 -0700"
  },
  "committer": {
    "name": "rules_java Copybara",
    "email": "noreply@google.com",
    "time": "Thu Aug 07 05:00:12 2025 -0700"
  },
  "message": "Fix Java coverage support on Windows by adding coverage_main_class to launch_info (#311)\n\n### Summary\n\nThis PR enables Java code coverage to work properly on Windows by adding the `coverage_main_class` to the `launch_info` metadata in `bazel_java_binary.bzl`. Without this addition, Bazel fails to properly instrument and run Java binaries with coverage enabled on Windows platforms.\n\n### Changes\n\n- Added `coverage_main_class` to `launch_info` in `bazel_java_binary.bzl` to explicitly define the main class used during coverage runs.\n\n### Motivation\n\n- Before this fix, attempts to run Java coverage tests on Windows would not produce proper coverage output.\n- This is a step toward resolving [bazelbuild/bazel#18839](https://github.com/bazelbuild/bazel/issues/18839).\n\nCloses #311\n\nCOPYBARA_INTEGRATE_REVIEW\u003dhttps://github.com/bazelbuild/rules_java/pull/311 from KrishnaM256:master 78942a24d9e34daa2ec9cecd8473dbfbb8c64059\nPiperOrigin-RevId: 792108185\nChange-Id: Ia29301538eaa3f7ca1195230abb32536dbe52e4f\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "da5472265660e95b412f65254e00949b889e35b8",
      "old_mode": 33188,
      "old_path": "java/bazel/rules/bazel_java_binary.bzl",
      "new_id": "1e4411e71f38ff7f8db8219e6c2057aae9d1075d",
      "new_mode": 33188,
      "new_path": "java/bazel/rules/bazel_java_binary.bzl"
    }
  ]
}
