You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SpEL's arithmetic operations should explicitly detect BigInteger/Short/Byte and fall back to double handling for unknown Number subtypes [SPR-9913] #14546
OpDivide.getValueInternal(ExpressionState) line: 48
performs Integer division on custom Number types even with precision loss.
Case:
I have a CustomFloat class derived from Number and should operate like a float in SPeL expressions. SPeL performs integer division even the TypeConverter is sets und converts CustomFloat Instances to float.