diff options
author | 2016-09-08 13:43:31 +0100 | |
---|---|---|
committer | 2016-09-21 11:42:21 +0100 | |
commit | 0e8443995af602bcc2e70dcef1d20ee48acec934 (patch) | |
tree | 2d81b8db23bea139e40e33e4e9b8c69027fb1e56 /patchoat/patchoat.cc | |
parent | c4cb3d532db8a500c1a15e8a0052895960259209 (diff) |
Collapse ART's AbstractMethod class into Executable
After the OpenJDK 8 pull there is now a common base class
for Method and Constructor that can be used instead.
Methods that are abstract on Executable but on Android
were implemented in AbstractMethod are now consistently
renamed to "{method}Internal", declared final and
given package-protected access.
For consistency with all other private, natively
implemented methods, the method getDeclaredAnnotations()
has been renamed getDeclaredAnnotationsNative().
Bug: 28666126
Bug: 31052885
Test: make test-art-host and cts run of CtsLibcoreTestCases
Change-Id: Ibfe6af6a47fe0cfffd0859ffbe58980aeb84e053
Diffstat (limited to 'patchoat/patchoat.cc')
-rw-r--r-- | patchoat/patchoat.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/patchoat/patchoat.cc b/patchoat/patchoat.cc index 5240011901..1af3660e8f 100644 --- a/patchoat/patchoat.cc +++ b/patchoat/patchoat.cc @@ -37,8 +37,8 @@ #include "elf_file_impl.h" #include "gc/space/image_space.h" #include "image-inl.h" -#include "mirror/abstract_method.h" #include "mirror/dex_cache.h" +#include "mirror/executable.h" #include "mirror/object-inl.h" #include "mirror/method.h" #include "mirror/reference.h" @@ -770,8 +770,8 @@ void PatchOat::VisitObject(mirror::Object* object) { } else if (object->GetClass() == mirror::Method::StaticClass() || object->GetClass() == mirror::Constructor::StaticClass()) { // Need to go update the ArtMethod. - auto* dest = down_cast<mirror::AbstractMethod*>(copy); - auto* src = down_cast<mirror::AbstractMethod*>(object); + auto* dest = down_cast<mirror::Executable*>(copy); + auto* src = down_cast<mirror::Executable*>(object); dest->SetArtMethod(RelocatedAddressOfPointer(src->GetArtMethod())); } } |