Lines 1398-1404
Link Here
|
1398 |
MethodBinding otherCandidate = candidates[j]; |
1398 |
MethodBinding otherCandidate = candidates[j]; |
1399 |
if (otherCandidate == candidate |
1399 |
if (otherCandidate == candidate |
1400 |
|| (candidate.declaringClass == otherCandidate.declaringClass && candidate.areParametersEqual(otherCandidate))) { |
1400 |
|| (candidate.declaringClass == otherCandidate.declaringClass && candidate.areParametersEqual(otherCandidate))) { |
1401 |
return new ProblemMethodBinding(candidates[i], candidates[i].selector, candidates[i].parameters, ProblemReasons.Ambiguous); |
1401 |
// if both candidates or neither candidates would have qualified for an exact match, |
|
|
1402 |
// on the grounds of having substituted parameters, report ambiguity |
1403 |
// see org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding.getExactMethod(char[], TypeBinding[], CompilationUnitScope) |
1404 |
if (candidate.hasSubstitutedParameters() == otherCandidate.hasSubstitutedParameters()) |
1405 |
return new ProblemMethodBinding(candidates[i], candidates[i].selector, candidates[i].parameters, ProblemReasons.Ambiguous); |
1402 |
} |
1406 |
} |
1403 |
} |
1407 |
} |
1404 |
} |
1408 |
} |