tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47371] EL expression parser error when getter methed return an empty string
Date Fri, 22 Apr 2011 15:23:16 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47371

--- Comment #3 from Konstantin Kolinko <knst.kolinko@gmail.com> 2011-04-22 11:23:11
EDT ---
Confirming in trunk, both the original issue and the one in Comment 2.

>From expression_language-2_2-mrel-spec.pdf:

The '+' operator is defined in chapter 1.7.1. There is the following step
there:
Otherwise coerce both A and B to Long and apply operator

Coercion to Long is covered by chapter 1.18.3.
If A is null or "", return 0.

Throwing a NumberFormatException for the empty string is a bug.

-- 
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


Mime
View raw message