Fix typo FieldNameAndSignature vs MethodNameAndSignature.
We incorrectly used a FieldNameAndSignature object in a logging
message instead of a MethodNameAndSignature object. This led to a
confusing error message since it would print an unrelated field
instead of the problematic method.
Test: ./test.py --host
Bug: 146229883
Bug: 145311370
Change-Id: I862d18bc23d1a3220dea8b2cc1a349a20bffb3c1
diff --git a/openjdkjvmti/ti_redefine.cc b/openjdkjvmti/ti_redefine.cc
index 53bf4df..1e77be8 100644
--- a/openjdkjvmti/ti_redefine.cc
+++ b/openjdkjvmti/ti_redefine.cc
@@ -980,7 +980,7 @@
RecordFailure(
ERR(UNSUPPORTED_REDEFINITION_METHOD_DELETED),
StringPrintf("Method %s missing!",
- FieldNameAndSignature(&old_dex_file, fail->GetIndex()).ToString().c_str()));
+ MethodNameAndSignature(&old_dex_file, fail->GetIndex()).ToString().c_str()));
return false;
}
return true;