diff options
author | Mathieu Chartier <mathieuc@google.com> | 2015-05-13 13:13:24 -0700 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2015-05-13 14:17:20 -0700 |
commit | 4e067787fff6cb6ce027d003c5ffe5dee4cb0d92 (patch) | |
tree | dac4e669b0419145506d9134c0a0fe02a9a47921 /runtime/common_throws.h | |
parent | c3912c8a2db109a15603554fd456f56cd0a69ad0 (diff) | |
download | art-4e067787fff6cb6ce027d003c5ffe5dee4cb0d92.tar.gz art-4e067787fff6cb6ce027d003c5ffe5dee4cb0d92.tar.bz2 art-4e067787fff6cb6ce027d003c5ffe5dee4cb0d92.zip |
Also print class for NoSuchFieldException
Example message:
Caused by: java.lang.NoSuchFieldException: No field value in class Ljava/lang/String;
Added test.
(cherry picked from commit 3beb245da9392818e3154d47593f82cf0ef69aac)
Bug: 20881251
Bug: 21027454
Change-Id: I4043cbf26c3077952b6c151da0d0edd980da26b1
Diffstat (limited to 'runtime/common_throws.h')
-rw-r--r-- | runtime/common_throws.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/common_throws.h b/runtime/common_throws.h index df95cf9a9e..49890e21c6 100644 --- a/runtime/common_throws.h +++ b/runtime/common_throws.h @@ -149,6 +149,9 @@ void ThrowNoSuchFieldError(const StringPiece& scope, mirror::Class* c, const StringPiece& type, const StringPiece& name) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); +void ThrowNoSuchFieldException(mirror::Class* c, const StringPiece& name) + SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); + // NoSuchMethodError void ThrowNoSuchMethodError(InvokeType type, mirror::Class* c, const StringPiece& name, |