Lines 803-814
Link Here
|
803 |
return false; |
803 |
return false; |
804 |
// skip it if otherInherited is defined by a subtype of inherited's declaringClass or vice versa. |
804 |
// skip it if otherInherited is defined by a subtype of inherited's declaringClass or vice versa. |
805 |
// avoid being order sensitive and check with the roles reversed also. |
805 |
// avoid being order sensitive and check with the roles reversed also. |
806 |
if (TypeBinding.notEquals(inherited.declaringClass.erasure(), otherInherited.declaringClass.erasure())) { |
806 |
// if (TypeBinding.notEquals(inherited.declaringClass.erasure(), otherInherited.declaringClass.erasure())) { |
807 |
if (inherited.declaringClass.findSuperTypeOriginatingFrom(otherInherited.declaringClass) != null) |
807 |
// if (inherited.declaringClass.findSuperTypeOriginatingFrom(otherInherited.declaringClass) != null) |
808 |
return false; |
808 |
// return false; |
809 |
if (otherInherited.declaringClass.findSuperTypeOriginatingFrom(inherited.declaringClass) != null) |
809 |
// if (otherInherited.declaringClass.findSuperTypeOriginatingFrom(inherited.declaringClass) != null) |
810 |
return false; |
810 |
// return false; |
811 |
} |
811 |
// } |
812 |
|
812 |
|
813 |
problemReporter().inheritedMethodsHaveNameClash(this.type, inherited, otherInherited); |
813 |
problemReporter().inheritedMethodsHaveNameClash(this.type, inherited, otherInherited); |
814 |
return true; |
814 |
return true; |