Check class of parent variable directly rather than using instanceof check. Needed to get correct behavior for subclasses of ClassHierarchyMethodTargetSelector
This commit is contained in:
parent
aeacbe9f3b
commit
fd47590634
|
@ -125,7 +125,8 @@ public class BypassMethodTargetSelector implements MethodTargetSelector {
|
|||
// we want to generate a NoOpSummary for this method.
|
||||
return findOrCreateSyntheticMethod(site.getDeclaredTarget(), site.isStatic());
|
||||
}
|
||||
if (parent instanceof ClassHierarchyMethodTargetSelector) {
|
||||
|
||||
if (parent.getClass() == ClassHierarchyMethodTargetSelector.class) {
|
||||
// already checked this case and decided not to bypass
|
||||
return chaTarget;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue