commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Iskander Absalyamov <>
Subject [jexl] Number coercion in assignments and method calls
Date Wed, 25 Jul 2012 03:42:30 GMT
What is a good way to make JEXL 2.1 coerce int/double values to
BigDecimal outside arithmetic expressions? So that one could write:
    someBean.someBigDecimalProperty = 1;
instead of:
    someBean.someBigDecimalProperty = 1.0b;

This is needed because non-technical users don't understand the
difference. Also, this seems a reasonable requirement because
JexlArithmetic does it already.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message