IDEA-173268 Emulated wildcard method breakpoint may be triggered on any lambda - fix for subinterfaces

This commit is contained in:
Egor.Ushakov
2017-06-09 14:41:49 +03:00
parent b0214d4830
commit d7673639f1
@@ -193,7 +193,7 @@ public class MethodBreakpoint extends BreakpointWithHighlighter<JavaMethodBreakp
Method lambdaMethod = MethodBytecodeUtil.getLambdaMethod(classType, debugProcess.getVirtualMachineProxy());
if (lambdaMethod != null &&
!breakpoint
.matchingMethods(StreamEx.of(((ClassType)classType).interfaces()).flatCollection(ReferenceType::methods), debugProcess)
.matchingMethods(StreamEx.of(((ClassType)classType).interfaces()).flatCollection(ReferenceType::allMethods), debugProcess)
.findFirst().isPresent()) {
return;
}