Make it a hard failure if we could not find a catch clause.
Test: test.py
Bug: 28313047
Change-Id: Ib80c771cc9d730909d00792c1f1d28b9c46f1a24
diff --git a/runtime/verifier/method_verifier.cc b/runtime/verifier/method_verifier.cc
index 0d9cf1c..b263439 100644
--- a/runtime/verifier/method_verifier.cc
+++ b/runtime/verifier/method_verifier.cc
@@ -3747,8 +3747,8 @@
}
}
if (common_super == nullptr) {
- /* no catch blocks, or no catches with classes we can find */
- Fail(VERIFY_ERROR_BAD_CLASS_SOFT) << "unable to find exception handler";
+ /* No catch block */
+ Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "unable to find exception handler";
return std::make_pair(true, ®_types_.Conflict());
}
return std::make_pair(true, common_super);