ASF Bugzilla – Attachment 20759 Details for
Bug 43285
Missing EL Coercion causes argument type mismatch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
Tomcat6-43285.patch (text/plain), 1.10 KB, created by
Bernhard Huemer
on 2007-09-02 13:20:34 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Bernhard Huemer
Created:
2007-09-02 13:20:34 UTC
Size:
1.10 KB
patch
obsolete
>Index: tomcat/tc6.0.x/trunk/java/org/apache/el/parser/AstValue.java >=================================================================== >--- tomcat/tc6.0.x/trunk/java/org/apache/el/parser/AstValue.java (revision 572108) >+++ tomcat/tc6.0.x/trunk/java/org/apache/el/parser/AstValue.java (working copy) >@@ -26,6 +26,7 @@ > import javax.el.MethodInfo; > import javax.el.PropertyNotFoundException; > >+import org.apache.el.lang.ELSupport; > import org.apache.el.lang.EvaluationContext; > import org.apache.el.util.MessageFactory; > import org.apache.el.util.ReflectionUtil; >@@ -127,7 +128,11 @@ > throws ELException { > Target t = getTarget(ctx); > ctx.setPropertyResolved(false); >- ctx.getELResolver().setValue(ctx, t.base, t.property, value); >+ ELResolver resolver = ctx.getELResolver(); >+ resolver.setValue(ctx, t.base, t.property, >+ // coerce to the expected type >+ ELSupport.coerceToType(value, >+ resolver.getType(ctx, t.base, t.property))); > } > > public MethodInfo getMethodInfo(EvaluationContext ctx, Class[] paramTypes)
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 43285
:
20757
| 20759 |
21962
|
21981
|
21982
|
22028