Fix issue with obsolete methods and const-method-handle

We were incorrectly using the non-obsolete version of the method to
search for the target of const-method-handle instructions. This meant
that obsolete methods would see the wrong method-handle or crash.

Since no java code (currently) compiles to dex code using
'const-method-handle' we needed to use ASM to construct the test
class.

Bug: 73744024
Test: ./test.py --host -j50

Change-Id: I14480170e12eee7f2df5ac084254039a040848c3
15 files changed