diff options
| author | 2021-07-05 17:43:35 +0100 | |
|---|---|---|
| committer | 2021-07-07 07:13:01 +0000 | |
| commit | 4dc6589f392d46800a3b64625245bdfe4bbbfc2f (patch) | |
| tree | b159262fd300a650ab89277667641ebe7e13d357 /runtime/mirror/class_ext-inl.h | |
| parent | e0386f10d4591afa9823658099e4f2ac7a693255 (diff) | |
Don't wrap VerifyError into NoClassDefFoundError.
Follow RI behavior by returning the VerifyError. NoClassDefFoundError
only wraps initializer errors.
Also rename the field in ClassExt from verifyError to
erroneousStateError for better clarity.
And remove now unused feature of storing a class in the verifyError
field.
Test: test.py
Test: 824-verification-rethrow
Bug: 28313047
Change-Id: I19383f7b74f22a62ab1e0b8a13bea75a14c7b33f
Diffstat (limited to 'runtime/mirror/class_ext-inl.h')
| -rw-r--r-- | runtime/mirror/class_ext-inl.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/mirror/class_ext-inl.h b/runtime/mirror/class_ext-inl.h index b8493c1707..ddd46b9bcb 100644 --- a/runtime/mirror/class_ext-inl.h +++ b/runtime/mirror/class_ext-inl.h @@ -144,9 +144,8 @@ inline bool ClassExt::HasMethodPointerIdMarker() { return !arr.IsNull() && !arr->IsArrayInstance(); } - -inline ObjPtr<Object> ClassExt::GetVerifyError() { - return GetFieldObject<ClassExt>(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); +inline ObjPtr<Throwable> ClassExt::GetErroneousStateError() { + return GetFieldObject<Throwable>(OFFSET_OF_OBJECT_MEMBER(ClassExt, erroneous_state_error_)); } inline ObjPtr<ObjectArray<DexCache>> ClassExt::GetObsoleteDexCaches() { |