ASF Bugzilla – Attachment 26928 Details for
Bug 47371
EL expression parser error when getter methed return an empty string
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for ELArithmetic
ELArithmetic.patch (text/plain), 729 bytes, created by
gbt
on 2011-04-22 12:30:59 UTC
(
hide
)
Description:
Patch for ELArithmetic
Filename:
MIME Type:
Creator:
gbt
Created:
2011-04-22 12:30:59 UTC
Size:
729 bytes
patch
obsolete
>Index: org/apache/el/lang/ELArithmetic.java >=================================================================== >--- org/apache/el/lang/ELArithmetic.java (revision 5667) >+++ org/apache/el/lang/ELArithmetic.java (revision 5668) >@@ -394,12 +394,12 @@ > if (isNumber(obj)) { > return coerce((Number) obj); > } >- if (obj instanceof String) { >- return coerce((String) obj); >- } > if (obj == null || "".equals(obj)) { > return coerce(ZERO); > } >+ if (obj instanceof String) { >+ return coerce((String) obj); >+ } > > if (obj instanceof Character) { > return coerce(Short.valueOf((short) ((Character) obj).charValue()));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 47371
: 26928