diff --git a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/action/deprecated/C99ResolveParserAction.java b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/action/deprecated/C99ResolveParserAction.java index 982c538b2cd..f141fefbe98 100644 --- a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/action/deprecated/C99ResolveParserAction.java +++ b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/action/deprecated/C99ResolveParserAction.java @@ -1362,9 +1362,8 @@ import org.eclipse.cdt.internal.core.dom.parser.ITypeContainer; if(identifierType instanceof IFunctionType) { // TODO: check the parameter types IFunctionType functionType = (IFunctionType)identifierType; - try { - resultType = functionType.getReturnType(); - } catch (DOMException e) { } // do nothing, the problem binding is fine + resultType = functionType.getReturnType(); + } exprTypeStack.push(resultType); @@ -1391,9 +1390,8 @@ import org.eclipse.cdt.internal.core.dom.parser.ITypeContainer; IType resultType = C99ProblemBinding.badType(); if(exprType instanceof IArrayType) { IArrayType arrType = (IArrayType) exprType; - try { - resultType = arrType.getType(); // strip off the array type - } catch (DOMException e) { } + resultType = arrType.getType(); // strip off the array type + } exprTypeStack.push(resultType); diff --git a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99PointerType.java b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99PointerType.java index 97fd92596f5..e430fcfae71 100644 --- a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99PointerType.java +++ b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99PointerType.java @@ -71,14 +71,13 @@ public class C99PointerType implements ITypeContainer, ICPointerType { return true; if (t instanceof ICPointerType) { - try { - ICPointerType pointerType = (ICPointerType) t; - if(pointerType.isConst() == isConst && - pointerType.isRestrict() == isRestrict && - pointerType.isVolatile() == isVolatile) { - return type.isSameType(pointerType.getType()); - } - } catch(DOMException _) { } + ICPointerType pointerType = (ICPointerType) t; + if(pointerType.isConst() == isConst && + pointerType.isRestrict() == isRestrict && + pointerType.isVolatile() == isVolatile) { + return type.isSameType(pointerType.getType()); + } + } return false; } diff --git a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99QualifierType.java b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99QualifierType.java index f9454b0f1c4..9d197fe631a 100644 --- a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99QualifierType.java +++ b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99QualifierType.java @@ -76,14 +76,14 @@ public class C99QualifierType implements ICQualifierType, ITypeContainer { return true; if (t instanceof ICQualifierType) { - try { - ICQualifierType pointerType = (ICQualifierType) t; - if(pointerType.isConst() == isConst && - pointerType.isRestrict() == isRestrict && - pointerType.isVolatile() == isVolatile) { - return type.isSameType(pointerType.getType()); - } - } catch(DOMException _) { } + + ICQualifierType pointerType = (ICQualifierType) t; + if(pointerType.isConst() == isConst && + pointerType.isRestrict() == isRestrict && + pointerType.isVolatile() == isVolatile) { + return type.isSameType(pointerType.getType()); + } + } return false; } diff --git a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Typedef.java b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Typedef.java index ac10b603e70..f6926e96c0e 100644 --- a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Typedef.java +++ b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Typedef.java @@ -69,13 +69,10 @@ public class C99Typedef extends PlatformObject implements IC99Binding, ITypedef, if(t == this) return true; - try { - if(t instanceof ITypedef) - return type.isSameType(((ITypedef)t).getType()); - return type.isSameType(t); - } catch(DOMException _) { - return false; - } + if(t instanceof ITypedef) + return type.isSameType(((ITypedef)t).getType()); + return type.isSameType(t); + } @Override