Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2012-08-27 17:47:49 -0400
committerSergey Prigogin2012-08-27 19:02:10 -0400
commit34b49d554591bb788ef7e19afea385daba66ffc8 (patch)
tree2dca78de7da480fcace48a8ce521ebf18c9e06b9
parent30c32372272b841cfc1b6625bbb42eabbf40ae7f (diff)
downloadorg.eclipse.cdt-34b49d554591bb788ef7e19afea385daba66ffc8.tar.gz
org.eclipse.cdt-34b49d554591bb788ef7e19afea385daba66ffc8.tar.xz
org.eclipse.cdt-34b49d554591bb788ef7e19afea385daba66ffc8.zip
Fixed ClassCastException.
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/EvalID.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/EvalID.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/EvalID.java
index ae55002ba9..9d1cf78752 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/EvalID.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/EvalID.java
@@ -303,9 +303,11 @@ public class EvalID extends CPPEvaluation {
if (templateArgs == fTemplateArgs && fieldOwner == fFieldOwner && nameOwner == fNameOwner)
return this;
- ICPPEvaluation eval = resolveName((ICPPClassType) nameOwner, templateArgs, point);
- if (eval != null)
- return eval;
+ if (nameOwner instanceof ICPPClassType) {
+ ICPPEvaluation eval = resolveName((ICPPClassType) nameOwner, templateArgs, point);
+ if (eval != null)
+ return eval;
+ }
return new EvalID(fieldOwner, nameOwner, fName, fAddressOf, fQualified, templateArgs);
}

Back to the top