tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 43656] ELSupport.coerceToType modifies BigDecimal Values
Date Sun, 03 Aug 2008 14:05:12 GMT

--- Comment #8 from Nils Eckert <>  2008-08-03 07:05:12 PST ---
Created an attachment (id=22355)
 --> (
Removed unnecessary Object-creation in coerceToNumber()

The method protected final static Number coerceToNumber(final Number number,
final Class type) created new BigInteger or BigDecimal Objects if the
input-value was of the given type. As far as BigInteger and BigDecimal are
immutable we can return the input value.

Another possible risk is the number.doubleValue() in the BigDecimal if clause.
This behaves different to the coerceToType Method and was replaced with

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

View raw message