Lines 670-676
Link Here
|
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(); |
673 |
if (this == returnType) { |
673 |
if (this == returnType || this == returnType.erasure()) { |
674 |
if (this instanceof SourceTypeBinding) { |
674 |
if (this instanceof SourceTypeBinding) { |
675 |
MethodDeclaration decl = (MethodDeclaration) currentMethods[i].sourceMethod(); |
675 |
MethodDeclaration decl = (MethodDeclaration) currentMethods[i].sourceMethod(); |
676 |
((SourceTypeBinding) this).scope.problemReporter().annotationCircularity(this, this, decl != null ? decl.returnType : null); |
676 |
((SourceTypeBinding) this).scope.problemReporter().annotationCircularity(this, this, decl != null ? decl.returnType : null); |