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>
Wed, 20 May 2015 23:09:30 +0000 (16:09 -0700)
commita56ce5e267c9744ed99e40ae5cd9b527971e1d63
tree4a916a7f4dc89d6444ade0d74cc64a3ad5126646
parentce70082da8a4e63c280c2f049a67b38acc82ee1a
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.

Bug: 20557050

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