AW: use correct ClassLoader in dupeMethod

This fixes an issue with the support library where we would sometimes
create an InvocationHandler and look up methods using the wrong
ClassLoader. This ensures we always use the correct ClassLoader.

dupeMethod() is only used here, so it's safe to change the signature.

See the crbug for more information.

Bug: 826988
Test: Manual, did this in my demo CL at http://crrev/c/965883
Change-Id: I7ca7bb90aec81a6a30ce4d6393cf40ee54d40c19
Reviewed-by: Richard Coles <>
Commit-Queue: Nate Fischer <>
Cr-Original-Commit-Position: refs/heads/master@{#546961}
Cr-Mirrored-Commit: c6aed4c0fe3d8eeb3ae7f2bdd32cc6433cdf929c
1 file changed
tree: cc9e5433ecb65a9beaf1d1f02d435ddb0d784ad0
  2. DEPS
  3. proguard.flags
  4. src/