Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Ferguson2008-04-09 14:08:56 +0000
committerAndrew Ferguson2008-04-09 14:08:56 +0000
commitfa65eafa16a2e94d480a91e08f1aaf38d6bf5a39 (patch)
tree5e04d64ff97c02a16ec545b50c6b7d9f57be9ab6 /core/org.eclipse.cdt.core/parser
parent887a1ea83e60effe5d785cc3c13a67c8a7fa6b6c (diff)
downloadorg.eclipse.cdt-fa65eafa16a2e94d480a91e08f1aaf38d6bf5a39.tar.gz
org.eclipse.cdt-fa65eafa16a2e94d480a91e08f1aaf38d6bf5a39.tar.xz
org.eclipse.cdt-fa65eafa16a2e94d480a91e08f1aaf38d6bf5a39.zip
226231: apply fix
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.java12
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;

Back to the top