diff options
author | Claude Brisson <cbrisson@apache.org> | 2016-10-08 15:59:05 +0000 |
---|---|---|
committer | Claude Brisson <cbrisson@apache.org> | 2016-10-08 15:59:05 +0000 |
commit | f7415d7c7d888113208c98517b5a1f1561f5a5ed (patch) | |
tree | 7bba08761ffd38a1994e13ee43e771307fb9002e /src | |
parent | 436b47be02b2f13c62c5ad563a94fbba1546c18b (diff) | |
download | apache-velocity-engine-f7415d7c7d888113208c98517b5a1f1561f5a5ed.tar.gz |
1) added missing unary negate math operator
2) bugfix and AST nodes hierarchy cleaning:
ASTBinaryOperator <--- ASTMathOperator <--- ASTAddNode, ASTSubstractNode, ...
<--- ASTComparisonOperator <--- ASTLTNode, ASTLENode, ...
<--- ASTLogicalOperator <--- ASTAndNode, ASTOrNode
The ASTBinaryOperator defines the new abstract method getLiteralOperator(), which returns the string representing the operator. It is used when calculating the error message which is displayed whenever something goes wrong (since at runtime tokens are freed to reduce memory usage, arithmetic errors where sometimes throwing NPEs before this reeng)
3) test cases for 1) and 2)
git-svn-id: https://svn.apache.org/repos/asf/velocity/engine/trunk@1763913 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/changes/changes.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 950fcbac..7837649d 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -28,6 +28,10 @@ <release version="2.0" date="In Subversion"> <action type="add" dev="cbrisson"> + Added unary negate math operator + </action> + + <action type="add" dev="cbrisson"> Add a configurable space gobbling feature, to control indentation in the generated code. <br/> Possible values for the 'space.gobbling' configuration key: |