Lines 1393-1409
Link Here
|
1393 |
MethodBinding candidate = candidates[i]; |
1393 |
MethodBinding candidate = candidates[i]; |
1394 |
if (candidate instanceof ParameterizedGenericMethodBinding) |
1394 |
if (candidate instanceof ParameterizedGenericMethodBinding) |
1395 |
candidate = ((ParameterizedGenericMethodBinding) candidate).originalMethod; |
1395 |
candidate = ((ParameterizedGenericMethodBinding) candidate).originalMethod; |
1396 |
if (candidate instanceof ParameterizedMethodBinding) |
1396 |
if (candidate.hasSubstitutedParameters()) { |
1397 |
for (int j = i + 1; j < visiblesCount; j++) { |
1397 |
for (int j = i + 1; j < visiblesCount; j++) { |
1398 |
MethodBinding otherCandidate = candidates[j]; |
1398 |
MethodBinding otherCandidate = candidates[j]; |
1399 |
if (otherCandidate == candidate |
1399 |
if (otherCandidate.hasSubstitutedParameters()) { |
1400 |
|| (candidate.declaringClass == otherCandidate.declaringClass && candidate.areParametersEqual(otherCandidate))) { |
1400 |
if (otherCandidate == candidate |
1401 |
return new ProblemMethodBinding(candidates[i], candidates[i].selector, candidates[i].parameters, ProblemReasons.Ambiguous); |
1401 |
|| (candidate.declaringClass == otherCandidate.declaringClass && candidate.areParametersEqual(otherCandidate))) { |
|
|
1402 |
return new ProblemMethodBinding(candidates[i], candidates[i].selector, candidates[i].parameters, ProblemReasons.Ambiguous); |
1403 |
} |
1402 |
} |
1404 |
} |
1403 |
} |
1405 |
} |
|
|
1406 |
} |
1404 |
} |
1407 |
} |
1405 |
} |
1408 |
} |
1406 |
|
|
|
1407 |
if (inStaticContext) { |
1409 |
if (inStaticContext) { |
1408 |
MethodBinding[] staticCandidates = new MethodBinding[visiblesCount]; |
1410 |
MethodBinding[] staticCandidates = new MethodBinding[visiblesCount]; |
1409 |
int staticCount = 0; |
1411 |
int staticCount = 0; |