aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanielWeber2010-10-01 10:26:37 (EDT)
committerSebastian Zarnekow2010-10-03 12:04:33 (EDT)
commita2d8e45d219f06192477f5530e32c14a553ae641 (patch)
treea1adb4b0bb59f6b0b5a51e93abb0cd58ebbc3aaf
parentbbde30fadd6b2e31cb8eec9d7ab68a005c2c0614 (diff)
downloadorg.eclipse.xtext-a2d8e45d219f06192477f5530e32c14a553ae641.zip
org.eclipse.xtext-a2d8e45d219f06192477f5530e32c14a553ae641.tar.gz
org.eclipse.xtext-a2d8e45d219f06192477f5530e32c14a553ae641.tar.bz2
Applied workaround for bug#326509 See https://bugs.eclipse.org/bugs/show_bug.cgi?id=326509
Signed-off-by: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
-rw-r--r--plugins/org.eclipse.xtext/src/org/eclipse/xtext/parser/antlr/AbstractInternalAntlrParser.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/org.eclipse.xtext/src/org/eclipse/xtext/parser/antlr/AbstractInternalAntlrParser.java b/plugins/org.eclipse.xtext/src/org/eclipse/xtext/parser/antlr/AbstractInternalAntlrParser.java
index c19b18a..5578a43 100644
--- a/plugins/org.eclipse.xtext/src/org/eclipse/xtext/parser/antlr/AbstractInternalAntlrParser.java
+++ b/plugins/org.eclipse.xtext/src/org/eclipse/xtext/parser/antlr/AbstractInternalAntlrParser.java
@@ -643,4 +643,14 @@ public abstract class AbstractInternalAntlrParser extends Parser {
return unorderedGroupHelper;
}
+ @Override
+ // This is a WORKAROUND for https://bugs.eclipse.org/bugs/show_bug.cgi?id=326509
+ protected void pushFollow(BitSet fset) {
+ if ((_fsp + 1) >= following.length) {
+ BitSet[] f = new BitSet[following.length * 2];
+ System.arraycopy(following, 0, f, 0, following.length);
+ following = f;
+ }
+ following[++_fsp] = fset;
+ }
}