summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-06-19 20:24:22 -0700
committerAndreas Gampe <agampe@google.com>2014-06-19 20:24:22 -0700
commit4fdbba09cdb16840c675608730bcd056ef27cfd6 (patch)
tree9a7b09d270fe118b96821f7e2b872cf42d317c55 /runtime
parenta81fe3d512ef846aad3398222afd1f0588bbaf7c (diff)
downloadart-4fdbba09cdb16840c675608730bcd056ef27cfd6.zip
art-4fdbba09cdb16840c675608730bcd056ef27cfd6.tar.gz
art-4fdbba09cdb16840c675608730bcd056ef27cfd6.tar.bz2
ART: Do not try to pretty-print method in dex file
The code is called in verification when it is not clear yet whether structures are valid. Simplify warning message. Bug: 15754233 Change-Id: I85858a71143f41444ce9f00536d901c268afe547
Diffstat (limited to 'runtime')
-rw-r--r--runtime/dex_file.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/runtime/dex_file.cc b/runtime/dex_file.cc
index 3ff55ab..10f34d9 100644
--- a/runtime/dex_file.cc
+++ b/runtime/dex_file.cc
@@ -935,8 +935,7 @@ void ClassDataItemIterator::ReadClassDataField() {
field_.field_idx_delta_ = DecodeUnsignedLeb128(&ptr_pos_);
field_.access_flags_ = DecodeUnsignedLeb128(&ptr_pos_);
if (last_idx_ != 0 && field_.field_idx_delta_ == 0) {
- LOG(WARNING) << "Duplicate field " << PrettyField(GetMemberIndex(), dex_file_)
- << " in " << dex_file_.GetLocation();
+ LOG(WARNING) << "Duplicate field in " << dex_file_.GetLocation();
}
}
@@ -945,8 +944,7 @@ void ClassDataItemIterator::ReadClassDataMethod() {
method_.access_flags_ = DecodeUnsignedLeb128(&ptr_pos_);
method_.code_off_ = DecodeUnsignedLeb128(&ptr_pos_);
if (last_idx_ != 0 && method_.method_idx_delta_ == 0) {
- LOG(WARNING) << "Duplicate method " << PrettyMethod(GetMemberIndex(), dex_file_)
- << " in " << dex_file_.GetLocation();
+ LOG(WARNING) << "Duplicate method in " << dex_file_.GetLocation();
}
}