You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by pk...@apache.org on 2014/09/03 12:48:21 UTC
svn commit: r1622218 - in /uima/ruta/trunk: README
ruta-core/src/main/antlr3/org/apache/uima/ruta/parser/RutaParser.g
Author: pkluegl
Date: Wed Sep 3 10:48:21 2014
New Revision: 1622218
URL: http://svn.apache.org/r1622218
Log:
no jira
- fixed version in readme
- avoid exception in parser's exception handling
Modified:
uima/ruta/trunk/README
uima/ruta/trunk/ruta-core/src/main/antlr3/org/apache/uima/ruta/parser/RutaParser.g
Modified: uima/ruta/trunk/README
URL: http://svn.apache.org/viewvc/uima/ruta/trunk/README?rev=1622218&r1=1622217&r2=1622218&view=diff
==============================================================================
--- uima/ruta/trunk/README (original)
+++ uima/ruta/trunk/README Wed Sep 3 10:48:21 2014
@@ -1,5 +1,5 @@
-Apache UIMA Ruta v2.2.0
+Apache UIMA Ruta v2.2.1
-------------------------------------------------------------------------
Building from the Source Distribution
Modified: uima/ruta/trunk/ruta-core/src/main/antlr3/org/apache/uima/ruta/parser/RutaParser.g
URL: http://svn.apache.org/viewvc/uima/ruta/trunk/ruta-core/src/main/antlr3/org/apache/uima/ruta/parser/RutaParser.g?rev=1622218&r1=1622217&r2=1622218&view=diff
==============================================================================
--- uima/ruta/trunk/ruta-core/src/main/antlr3/org/apache/uima/ruta/parser/RutaParser.g (original)
+++ uima/ruta/trunk/ruta-core/src/main/antlr3/org/apache/uima/ruta/parser/RutaParser.g Wed Sep 3 10:48:21 2014
@@ -114,7 +114,10 @@ public void setExternalFactory(RutaExter
}
public void emitErrorMessage(RecognitionException e) {
int foundInt = e.c;
- String stringFound = getTokenNames()[foundInt];
+ String stringFound = "<unknown token>";
+ if(foundInt >= 0 && foundInt < getTokenNames().length) {
+ stringFound = getTokenNames()[foundInt];
+ }
int line = e.line;
String text = e.token.getText();