dion 2004/08/29 16:38:58
Modified: jelly/src/java/org/apache/commons/jelly/expression/jexl
JexlExpressionFactory.java
Log:
[,],( and ) are not part of a valid ant variable
Revision Changes Path
1.18 +2 -2
jakarta-commons/jelly/src/java/org/apache/commons/jelly/expression/jexl/JexlExpressionFactory.java
Index: JexlExpressionFactory.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/jelly/src/java/org/apache/commons/jelly/expression/jexl/JexlExpressionFactory.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- JexlExpressionFactory.java 24 Feb 2004 13:56:59 -0000 1.17
+++ JexlExpressionFactory.java 29 Aug 2004 23:38:57 -0000 1.18
@@ -101,7 +101,7 @@
for (int i = 0, size = chars.length; i < size; i++ ) {
char ch = chars[i];
// could maybe be a bit more restrictive...
- if ( Character.isWhitespace(ch) || ch == '[' ) {
+ if ( Character.isWhitespace(ch) || ch == '[' || ch == ']' || ch == '('
|| ch == ')') {
return false;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]