summaryrefslogtreecommitdiff
path: root/runtime/class_linker.cc
diff options
context:
space:
mode:
author David Brazdil <dbrazdil@google.com> 2018-03-23 10:32:23 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2018-03-23 10:32:23 +0000
commit454bc46869f116fc1c3b9e38b0868341d463ed4b (patch)
tree2e007dee62ba32a4bb22f16efe6f955e753ad482 /runtime/class_linker.cc
parent16b607ded45d41ae0e5e2d38417a33291ac42592 (diff)
parent5c7e618a14d638109648094ba37bb3843279ad11 (diff)
Merge "Revert "Warn on overriding of hidden methods""
Diffstat (limited to 'runtime/class_linker.cc')
-rw-r--r--runtime/class_linker.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc
index 8a29ff33b7..1d72b46f6c 100644
--- a/runtime/class_linker.cc
+++ b/runtime/class_linker.cc
@@ -5863,14 +5863,6 @@ bool ClassLinker::LinkVirtualMethods(
// smaller as we go on.
uint32_t hash_index = hash_table.FindAndRemove(&super_method_name_comparator);
if (hash_index != hash_table.GetNotFoundIndex()) {
- // Run a check whether we are going to override a method which is hidden
- // to `klass`, but ignore the result as we only warn at the moment.
- // We cannot do this test earlier because we need to establish that
- // a method is being overridden first. ShouldBlockAccessToMember would
- // print bogus warnings otherwise.
- hiddenapi::ShouldBlockAccessToMember(
- super_method, klass->GetClassLoader(), hiddenapi::kOverride);
-
ArtMethod* virtual_method = klass->GetVirtualMethodDuringLinking(
hash_index, image_pointer_size_);
if (super_method->IsFinal()) {