adding comment explaining why instanceof check was replaced
This commit is contained in:
parent
fd47590634
commit
0fba08e581
|
@ -126,6 +126,9 @@ public class BypassMethodTargetSelector implements MethodTargetSelector {
|
|||
return findOrCreateSyntheticMethod(site.getDeclaredTarget(), site.isStatic());
|
||||
}
|
||||
|
||||
// not using if (instanceof ClassHierarchyMethodTargetSelector) because
|
||||
// we want to make sure that getCalleeTarget() is still called if
|
||||
// parent is a subclass of ClassHierarchyMethodTargetSelector
|
||||
if (parent.getClass() == ClassHierarchyMethodTargetSelector.class) {
|
||||
// already checked this case and decided not to bypass
|
||||
return chaTarget;
|
||||
|
|
Loading…
Reference in New Issue