ASF Bugzilla – Attachment 29787 Details for
Bug 54338
Class cast exception in tagPlugin Set generated code
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for Set.java
Set.diff (text/plain), 1.11 KB, created by
Sheldon Shao
on 2012-12-21 12:00:56 UTC
(
hide
)
Description:
Patch for Set.java
Filename:
MIME Type:
Creator:
Sheldon Shao
Created:
2012-12-21 12:00:56 UTC
Size:
1.11 KB
patch
obsolete
>Index: org/apache/jasper/tagplugins/jstl/core/Set.java >=================================================================== >--- org/apache/jasper/tagplugins/jstl/core/Set.java (revision 1416791) >+++ org/apache/jasper/tagplugins/jstl/core/Set.java (working copy) >@@ -144,7 +144,7 @@ > > //invoke the method through the reflection > ctxt.generateJavaSource(" if(" + resultName + " != null){"); >- ctxt.generateJavaSource(" " + methodName + ".invoke(" + targetName + ", new Object[]{(" + methodName + ".getParameterTypes()[0]).cast(" + resultName + ")});"); >+ ctxt.generateJavaSource(" " + methodName + ".invoke(" + targetName + ", new Object[]{org.apache.el.lang.ELSupport.coerceToType(" + resultName + ", " + methodName + ".getParameterTypes()[0])});"); > ctxt.generateJavaSource(" }else{"); > ctxt.generateJavaSource(" " + methodName + ".invoke(" + targetName + ", new Object[]{null});"); > ctxt.generateJavaSource(" }");
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 54338
:
29786
| 29787