[
https://issues.apache.org/jira/browse/JEXL-373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17553287#comment-17553287
]
Dmitri Blinov commented on JEXL-373:
------------------------------------
Once you mentioned complexity of overload checks for self\{Add,Subtract,..} I
recalled that when I tackeled that problem myself, I added the default
implementations for those methods to base JexlArithmetic
{code:java}
public Object selfAdd(Object left, Object right) {
return add(left, right);
}
{code}
and adjusted Operators to call them directly if there were no overloads
detected.
{code}
switch (operator) {
case SELF_ADD:
return arithmetic.selfAdd(arg1, arg2);
{code}
It shaves off some cycles on preventing always using reflection
> Add support for prefix/postfix increment/decrement operators
> ------------------------------------------------------------
>
> Key: JEXL-373
> URL: https://issues.apache.org/jira/browse/JEXL-373
> Project: Commons JEXL
> Issue Type: Improvement
> Affects Versions: 3.2.1
> Reporter: Henri Biestro
> Assignee: Henri Biestro
> Priority: Major
> Fix For: 3.3
>
>
> The prefix/postfix increment/decrement operators as in:
> {code}lhs++; ++lhs; lhs--; --lhs;{code}
> lhs being a left-hand-side value, a value that can be assigned.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)