diff options
Diffstat (limited to 'core/org.eclipse.cdt.core/parser')
-rw-r--r-- | core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPClassSpecialization.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPClassSpecialization.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPClassSpecialization.java index ffca78ec97c..3cca41cd637 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPClassSpecialization.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPClassSpecialization.java @@ -48,7 +48,7 @@ import org.eclipse.cdt.internal.core.index.IIndexType; * */ public class CPPClassSpecialization extends CPPSpecialization implements - ICPPClassType, ICPPInternalBinding { + ICPPClassType { private IScope specScope; @@ -157,9 +157,13 @@ public class CPPClassSpecialization extends CPPSpecialization implements * @see org.eclipse.cdt.core.dom.ast.cpp.ICPPClassType#getDeclaredMethods() */ public ICPPMethod[] getDeclaredMethods() throws DOMException { - CPPClassSpecializationScope scope = (CPPClassSpecializationScope) getCompositeScope(); - if (scope.isFullyCached()) - return scope.getDeclaredMethods(); + IScope scope= getCompositeScope(); + if (scope instanceof CPPClassSpecializationScope) { + CPPClassSpecializationScope sscope= (CPPClassSpecializationScope) scope; + if (sscope.isFullyCached()) + return sscope.getDeclaredMethods(); + } + IBinding binding = null; ICPPMethod [] result = null; |