Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2017-01-10 11:09:10 -0500
committerStephan Herrmann2017-01-15 13:29:05 -0500
commit650f3e04b107411ea88c9a9eaad2896bcb98a6a0 (patch)
tree8d3789bd1b6fb585a7b161cae55ef6495ab5d49b
parent14841b4dead08757e17912c494ebf85483b743ac (diff)
downloadorg.eclipse.objectteams-650f3e04b107411ea88c9a9eaad2896bcb98a6a0.tar.gz
org.eclipse.objectteams-650f3e04b107411ea88c9a9eaad2896bcb98a6a0.tar.xz
org.eclipse.objectteams-650f3e04b107411ea88c9a9eaad2896bcb98a6a0.zip
Bug 507254 - Run tests with assertions enabled
- fix bug that surfaced in ExtractTempTests.testTypeAnchor3
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/lookup/TeamAnchor.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/lookup/TeamAnchor.java b/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/lookup/TeamAnchor.java
index 8fe10e7d5..1c33e2b41 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/lookup/TeamAnchor.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/lookup/TeamAnchor.java
@@ -215,9 +215,6 @@ public abstract class TeamAnchor extends Binding implements ITeamAnchor {
return ((Argument)stat).binding.bestNamePath;
}
Expression expr = (Expression)stat;
- if (RoleTypeBinding.isRoleWithExplicitAnchor(expr.resolvedType)) {
- return ((IRoleTypeBinding)expr.resolvedType).getAnchorBestName();
- }
if (expr instanceof QualifiedNameReference) {
QualifiedNameReference qRef = (QualifiedNameReference)expr;
if (qRef.binding instanceof ITeamAnchor) {

Back to the top