Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
5.3.2
Description
At the moment the coercion from Number to Boolean is implemented as
public Boolean coerce(Number input)
{
return input.byteValue() != 0;
}
It should be
public Boolean coerce(Number input)
{
return input.longValue() != 0;
}
All numbers (e.g. longs, integers, shorts) will be coerced to false if the number modulo 256 is zero.