Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Camelon2004-06-18 15:17:29 -0400
committerJohn Camelon2004-06-18 15:17:29 -0400
commitc167ba0976427824d5844d615842b4151ffa2406 (patch)
tree096cbb34eb012a35a5d09242169a2806c4a5e2ff
parent5cb25a3872c733f408289f3087654bb4acd52f2c (diff)
downloadorg.eclipse.cdt-c167ba0976427824d5844d615842b4151ffa2406.tar.gz
org.eclipse.cdt-c167ba0976427824d5844d615842b4151ffa2406.tar.xz
org.eclipse.cdt-c167ba0976427824d5844d615842b4151ffa2406.zip
Remove infinite loop on catching Throwable/Exception in Parser.translationUnit().
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ExpressionParser.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ExpressionParser.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ExpressionParser.java
index 8af69573c6b..65e46aa39c5 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ExpressionParser.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ExpressionParser.java
@@ -227,6 +227,7 @@ public class ExpressionParser implements IExpressionParser, IParserData {
try {
if (firstErrorOffset == FIRST_ERROR_OFFSET_UNSET)
firstErrorOffset = LA(1).getOffset();
+ consume(); // get past this token
} catch (EndOfFileException eof) {
// do nothing
} finally {

Back to the top