Lines 669-675
Link Here
|
669 |
MethodBinding[] currentMethods = methods(); |
669 |
MethodBinding[] currentMethods = methods(); |
670 |
boolean inCycle = false; // check each method before failing |
670 |
boolean inCycle = false; // check each method before failing |
671 |
for (int i = 0, l = currentMethods.length; i < l; i++) { |
671 |
for (int i = 0, l = currentMethods.length; i < l; i++) { |
672 |
TypeBinding returnType = currentMethods[i].returnType.leafComponentType(); |
672 |
TypeBinding returnType = currentMethods[i].returnType.leafComponentType().erasure(); |
673 |
if (this == returnType) { |
673 |
if (this == returnType) { |
674 |
if (this instanceof SourceTypeBinding) { |
674 |
if (this instanceof SourceTypeBinding) { |
675 |
MethodDeclaration decl = (MethodDeclaration) currentMethods[i].sourceMethod(); |
675 |
MethodDeclaration decl = (MethodDeclaration) currentMethods[i].sourceMethod(); |