ASF Bugzilla – Attachment 33061 Details for
Bug 58327
ValueExpressionLiteral should cache the string value
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
tc-el-vel-cache-expression-string.diff (text/plain), 775 bytes, created by
Andreas Kohn
on 2015-09-04 09:46:40 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Andreas Kohn
Created:
2015-09-04 09:46:40 UTC
Size:
775 bytes
patch
obsolete
>Index: java/org/apache/el/ValueExpressionLiteral.java >=================================================================== >--- java/org/apache/el/ValueExpressionLiteral.java (revision 1701179) >+++ java/org/apache/el/ValueExpressionLiteral.java (working copy) >@@ -35,6 +35,7 @@ > private static final long serialVersionUID = 1L; > > private Object value; >+ private String valueString; > > private Class<?> expectedType; > >@@ -89,7 +90,10 @@ > > @Override > public String getExpressionString() { >- return (this.value != null) ? this.value.toString() : null; >+ if (this.valueString == null) { >+ this.valueString = (this.value != null) ? this.value.toString() : null; >+ } >+ return this.valueString; > } > > @Override
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 58327
: 33061