You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by di...@apache.org on 2006/02/27 01:27:09 UTC
svn commit: r381207 -
/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ExpressionFactory.java
Author: dion
Date: Sun Feb 26 16:27:09 2006
New Revision: 381207
URL: http://svn.apache.org/viewcvs?rev=381207&view=rev
Log:
Clean up syntax message on bad node type
Modified:
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ExpressionFactory.java
Modified: jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ExpressionFactory.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ExpressionFactory.java?rev=381207&r1=381206&r2=381207&view=diff
==============================================================================
--- jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ExpressionFactory.java (original)
+++ jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/ExpressionFactory.java Sun Feb 26 16:27:09 2006
@@ -119,7 +119,7 @@
tree = parser.parse(new StringReader(expr));
}
- // Must be a simple reference or expression, otherwise
+ // Must be a simple reference, expression, statement or if, otherwise
// throw an exception.
SimpleNode node = (SimpleNode) tree.jjtGetChild(0);
@@ -137,7 +137,7 @@
return new ExpressionImpl(expression, node);
}
log.error( "Invalid Expression, node of type: " + node.getClass().getName() );
- throw new Exception("Invalid Expression: neither Reference nor Expression");
+ throw new Exception("Invalid Expression: not a Reference, Expression, Statement or If");
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org