Lines 973-992
Link Here
|
973 |
} |
973 |
} |
974 |
} |
974 |
} |
975 |
// check dup collisions |
975 |
// check dup collisions |
976 |
boolean isSource15 = this.scope.compilerOptions().sourceLevel >= ClassFileConstants.JDK1_5; |
976 |
// boolean isSource15 = this.scope.compilerOptions().sourceLevel >= ClassFileConstants.JDK1_5; |
977 |
for (int i = start; i <= end; i++) { |
977 |
// for (int i = start; i <= end; i++) { |
978 |
MethodBinding method1 = this.methods[i]; |
978 |
// MethodBinding method1 = this.methods[i]; |
979 |
for (int j = end; j > i; j--) { |
979 |
// for (int j = end; j > i; j--) { |
980 |
MethodBinding method2 = this.methods[j]; |
980 |
// MethodBinding method2 = this.methods[j]; |
981 |
boolean paramsMatch = isSource15 |
981 |
// boolean paramsMatch = isSource15 |
982 |
? method1.areParameterErasuresEqual(method2) |
982 |
// ? method1.areParameterErasuresEqual(method2) |
983 |
: method1.areParametersEqual(method2); |
983 |
// : method1.areParametersEqual(method2); |
984 |
if (paramsMatch) { |
984 |
// if (paramsMatch) { |
985 |
methods(); |
985 |
// methods(); |
986 |
return getExactMethod(selector, argumentTypes, refScope); // try again since the problem methods have been removed |
986 |
// return getExactMethod(selector, argumentTypes, refScope); // try again since the problem methods have been removed |
987 |
} |
987 |
// } |
988 |
} |
988 |
// } |
989 |
} |
989 |
// } |
990 |
return this.methods[start]; |
990 |
return this.methods[start]; |
991 |
// nextMethod: for (int imethod = start; imethod <= end; imethod++) { |
991 |
// nextMethod: for (int imethod = start; imethod <= end; imethod++) { |
992 |
// FunctionBinding method = this.methods[imethod]; |
992 |
// FunctionBinding method = this.methods[imethod]; |