From 486834554b9ad52b90c322792e3280a93a6e5ad0 Mon Sep 17 00:00:00 2001 From: Anton Leherbauer Date: Fri, 29 Jan 2010 08:41:56 +0000 Subject: [PATCH] Bug 301142 - [semantic highlighting] Exception is logged --- .../cdt/internal/ui/editor/SemanticHighlightings.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/SemanticHighlightings.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/SemanticHighlightings.java index a27640ef1c1..b37af1a34d2 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/SemanticHighlightings.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/SemanticHighlightings.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2009 IBM Corporation and others. + * Copyright (c) 2000, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -510,7 +510,7 @@ public class SemanticHighlightings { return false; } IBinding binding= token.getBinding(); - if (binding instanceof ICPPMethod) { + if (binding instanceof ICPPMethod && !(binding instanceof IProblemBinding)) { try { return ((ICPPMethod)binding).isStatic(); } catch (DOMException exc) { @@ -1992,7 +1992,7 @@ public class SemanticHighlightings { if(node instanceof IASTImplicitName) { IASTImplicitName name = (IASTImplicitName) node; IBinding binding = name.resolveBinding(); - if(binding instanceof ICPPMethod && ((ICPPMethod)binding).isImplicit()) { + if(binding instanceof ICPPMethod && !(binding instanceof IProblemBinding) && ((ICPPMethod)binding).isImplicit()) { return false; } char[] chars = name.toCharArray();