Re: [JEXL] 2.0 incompatible change of number coercion behaviour

2009-09-14 Thread Henrib
not narrow to Integer if either argument is a Long; updated JavaDoc accordingly Modified: commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl/JexlArithmetic.java -- View this message in context: http://www.nabble.com/-JEXL--2.0-incompatible-change-of-number-coercion-behaviour-

[JEXL] 2.0 incompatible change of number coercion behaviour

2009-09-13 Thread sebb
Recent changes to the arithmetical operations mean that many arithmetic operation results are now coerced to Integer, even if both input variables are Long. This is unexpected behaviour - e.g. Commons Jelly expects that Long*2 => Long Seems to me that the result of an arithmetic op should general