You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2009/12/11 16:09:35 UTC

DO NOT REPLY [Bug 43656] ELSupport.coerceToType modifies BigDecimal Values

https://issues.apache.org/bugzilla/show_bug.cgi?id=43656

--- Comment #26 from Adam Hardy <ad...@cyberspaceroad.com> 2009-12-11 07:09:30 UTC ---
Created an attachment (id=24692)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24692)
zip containing JSP, TLD and java file

I came across this bug today - at least it looks a lot like it. 

If I try to pass in a null to the function, it falls over giving me the
following:

java.lang.IllegalArgumentException: Cannot convert 0 of type class
java.lang.Long to class java.lang.Number
    org.apache.el.lang.ELSupport.coerceToNumber(ELSupport.java:250)

Which is at best misleading and at worst, just the wrong way to handle nulls.
Hopefully this is reproducible everywhere.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org