Catch clauses should only have throwable types.
Test: test.py
Bug: 28313047
Change-Id: I48bc06b408e4f80cc52293e0c71331d2e15f753d
diff --git a/runtime/verifier/method_verifier.cc b/runtime/verifier/method_verifier.cc
index 23d4de0..446f2e1 100644
--- a/runtime/verifier/method_verifier.cc
+++ b/runtime/verifier/method_verifier.cc
@@ -3711,7 +3711,7 @@
unresolved = &unresolved->SafeMerge(exception, ®_types_, this);
}
} else {
- Fail(VERIFY_ERROR_BAD_CLASS_SOFT) << "unexpected non-exception class "
+ Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "unexpected non-throwable class "
<< exception;
return std::make_pair(true, ®_types_.Conflict());
}