From 1cb9ea94e6fa34af87998ffc7efc82c4df79858c Mon Sep 17 00:00:00 2001 From: Markus Schorn Date: Mon, 22 Jun 2009 13:39:29 +0000 Subject: [PATCH] Type-cache returns undefined types, bug 277277 --- .../browser/org/eclipse/cdt/core/browser/AllTypesCache.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/core/browser/AllTypesCache.java b/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/core/browser/AllTypesCache.java index a0b2c390503..d66340a51bd 100644 --- a/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/core/browser/AllTypesCache.java +++ b/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/core/browser/AllTypesCache.java @@ -57,8 +57,9 @@ public class AllTypesCache { IIndexBinding[] all = index.findBindings(Pattern.compile(".*"), false, new IndexFilter() { //$NON-NLS-1$ @Override - public boolean acceptBinding(IBinding binding) { - return IndexModelUtil.bindingHasCElementType(binding, kinds); + public boolean acceptBinding(IBinding binding) throws CoreException { + return IndexFilter.ALL_DECLARED_OR_IMPLICIT.acceptBinding(binding) && + IndexModelUtil.bindingHasCElementType(binding, kinds); }}, monitor );