diff options
author | Mathieu Chartier <mathieuc@google.com> | 2015-03-29 18:27:50 -0700 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2015-03-29 18:54:20 -0700 |
commit | ca239af73e512df5eeb80fe6c09c2ca614649e06 (patch) | |
tree | cee8641c42385f40b567c686cd5053fde152a088 /runtime/reflection.h | |
parent | f381645a336f7092ab6f5900c0a2cf183a9dbdf7 (diff) | |
download | art-ca239af73e512df5eeb80fe6c09c2ca614649e06.tar.gz art-ca239af73e512df5eeb80fe6c09c2ca614649e06.tar.bz2 art-ca239af73e512df5eeb80fe6c09c2ca614649e06.zip |
Fix some reflection errors
Fixed incorrectly using 2nd frame instead of 1st in VerifyAccess.
Added regression test to ART. Fixed broken setShort,
getDeclaredFieldInternal.
Change-Id: I4b21d52d998cb768fe9503b8bccec506b7b972e5
Diffstat (limited to 'runtime/reflection.h')
-rw-r--r-- | runtime/reflection.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/reflection.h b/runtime/reflection.h index 6bef664ca4..ff970e5507 100644 --- a/runtime/reflection.h +++ b/runtime/reflection.h @@ -73,7 +73,7 @@ ALWAYS_INLINE bool VerifyObjectIsClass(mirror::Object* o, mirror::Class* c) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); bool VerifyAccess(Thread* self, mirror::Object* obj, mirror::Class* declaring_class, - uint32_t access_flags, mirror::Class** calling_class) + uint32_t access_flags, mirror::Class** calling_class, size_t num_frames) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); void InvalidReceiverError(mirror::Object* o, mirror::Class* c) |