OSDN Git Service

Fix a cts crash around proxy class fields.
authorHiroshi Yamauchi <yamauchi@google.com>
Wed, 20 May 2015 22:51:29 +0000 (15:51 -0700)
committerHiroshi Yamauchi <yamauchi@google.com>
Thu, 21 May 2015 00:04:22 +0000 (17:04 -0700)
commit2debd8032a9e44910bb7e39ca5d142a4fc237c05
tree31ce60c28169f3de7d1b52b00ae673acb7d742ff
parent22efeba85d4056143e34ed9a212a48a206d2f5b8
Fix a cts crash around proxy class fields.

org.apache.harmony.tests.java.io.SerializationStressTest4#test_writeObject_Proxy

As the static fields of proxy classes share the dex file indices, they
shouldn't be resolved in the dex cache or else Field::GetArtField()
may return a wrong art field that belong to a different proxy class.

(cherry pick commit a56ce5e267c9744ed99e40ae5cd9b527971e1d63)

Bug: 20557050

Change-Id: If672c0e67bc49e672e34d75ffbe29c65f5a423b9
runtime/mirror/field-inl.h
runtime/mirror/field.cc
runtime/proxy_test.cc