EA-75076 - AIOOBE: InferenceSession.isMoreSpecific
if (argumentList == null) {
return null;
}
- conflictResolver.checkParametersNumber(info, argumentList.getExpressions().length, false);
+ final boolean atLeastOneMatchFound = conflictResolver.checkParametersNumber(info, argumentList.getExpressions().length, false);
+ if (!atLeastOneMatchFound) {
+ return null;
+ }
conflictResolver.checkSpecifics(info, MethodCandidateInfo.ApplicabilityLevel.VARARGS, level);
if (info.size() > 1) {
return null;
--- /dev/null
+// "Replace with expression lambda" "false"
+class IdeaSetterArgsShouldBeFinal {
+
+ interface I {
+ void m1();
+ }
+
+ interface J {
+ void m2();
+ }
+
+ <L> void foo(I i, J j1, J... j){}
+ <K> void foo(I o, I i1, I... i){}
+
+ {
+ foo(() -> {
+ System.ou<caret>t.println("");
+ });
+ }
+
+}
\ No newline at end of file