)]}'
{
  "commit": "481bcb2d4f7cd2876d30dea7356df89d4ab94141",
  "tree": "33a0d3331a671d238c479833a7968edc708db350",
  "parents": [
    "8a64e773d4d1221166c6a8206315b450e448705a"
  ],
  "author": {
    "name": "Pete Gillin",
    "email": "peteg@google.com",
    "time": "Tue Feb 05 14:58:42 2019 +0000"
  },
  "committer": {
    "name": "Pete Gillin",
    "email": "peteg@google.com",
    "time": "Tue Feb 05 14:58:42 2019 +0000"
  },
  "message": "Fix host-only exception in art test 005-annotations.\n\nThis test involves a method which has an annotation which has an\nenum-valued parameter, and the enum value supplied exists in the\nversion of the enum which is used at compile-time but not in the\nversion of the enum on the classpath. The test previously asserted\nthat calling java.lang.reflect.Method.getDeclaredAnnotations() should\nthrow java.lang.NoSuchFieldError. This matches the libcore+art\nbehaviour, so the test passes in --host mode. But it fails in --jvm\nmode, as a java.lang.annotation.AnnotationFormatError is thrown there.\n\nThe javadoc doesn\u0027t strongly support an argument that one of these is\nmore correct than the other, and there\u0027s no reason to believe that\nanyone is depending on one behaviour or the other. This change\ntherefore doesn\u0027t affect the behaviour of art+libcore, but makes the\ntest accept Error more generally.\n(https://developer.android.com/reference/java/lang/reflect/AnnotatedElement)\n\nThis therefore stops the test throwing an exception in --jvm\nmode. There are still differences between the expected and actual\noutput of the test, around e.g. whether string-valued parameters\nshould be quoted or not.\n\nBug: 73897123\nTest: `art/test/run-test --jvm --dev 005-annotations` now completes successfully instead of failing with an exception\nTest: `art/test/run-test --jvm 005-annotations` now shows output diff instead of failing with an exception\nTest: `art/test/run-test --host 005-annotations` still passes\nChange-Id: I11a8c0933555c513adb26b34015e4918025a05df\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ee5b0c74c53e523bd2cf25e5557b7d855cf0b633",
      "old_mode": 33188,
      "old_path": "test/005-annotations/expected.txt",
      "new_id": "b537c8f8bdfa0f8872e7e47ae14339cc98c2038a",
      "new_mode": 33188,
      "new_path": "test/005-annotations/expected.txt"
    },
    {
      "type": "modify",
      "old_id": "8ea8e8eb8fd31d05a6aec3829e376bf180defeb7",
      "old_mode": 33188,
      "old_path": "test/005-annotations/src/android/test/anno/TestAnnotations.java",
      "new_id": "a3e32f98715dda87a9eacf725c6c138a0e495894",
      "new_mode": 33188,
      "new_path": "test/005-annotations/src/android/test/anno/TestAnnotations.java"
    }
  ]
}
