Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2012-09-18 12:53:51 -0400
committerStephan Herrmann2012-09-18 12:53:51 -0400
commita41522640854ed503aa561e345848207cc597e79 (patch)
tree8868b56653577f1b7d24875ef417563151b0e8ed
parentac0ddd88e8e28e6d8135a9c687807aea521b6e1d (diff)
downloadorg.eclipse.objectteams-a41522640854ed503aa561e345848207cc597e79.tar.gz
org.eclipse.objectteams-a41522640854ed503aa561e345848207cc597e79.tar.xz
org.eclipse.objectteams-a41522640854ed503aa561e345848207cc597e79.zip
Integrate anchored type references into the solution for bug 297825
Fixes regression in OTJavaTypeSearchTests.test017()
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedTypeReference.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedTypeReference.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedTypeReference.java
index 8adf501b8..477ebd03b 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedTypeReference.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedTypeReference.java
@@ -79,6 +79,7 @@ public class QualifiedTypeReference extends TypeReference {
(ReferenceBinding)problemType.closestMatch().leafComponentType());
return null; // don't report again
}
+ recordResolution(scope.environment(), anchoredType);
return anchoredType; // includes the case of AnchorNotFinal
}
}
@@ -140,6 +141,7 @@ public class QualifiedTypeReference extends TypeReference {
if (!(enclosingType != null && enclosingType.isSynthInterface()))
if ((this.bits & IsAllocationType) == 0) // new path.R() is a different story
reportDeprecatedPathSyntax(scope);
+ recordResolution(scope.environment(), roleType);
return roleType;
}
}

Back to the top