View | Details | Raw Unified | Return to bug 54338
Collapse All | Expand All

(-)org/apache/jasper/tagplugins/jstl/core/Set.java (-1 / +1 lines)
Lines 144-150 Link Here
144
            
144
            
145
            //invoke the method through the reflection
145
            //invoke the method through the reflection
146
            ctxt.generateJavaSource("                    if(" + resultName + " != null){");
146
            ctxt.generateJavaSource("                    if(" + resultName + " != null){");
147
            ctxt.generateJavaSource("                        " + methodName + ".invoke(" + targetName + ", new Object[]{(" + methodName + ".getParameterTypes()[0]).cast(" + resultName + ")});");
147
            ctxt.generateJavaSource("                        " + methodName + ".invoke(" + targetName + ", new Object[]{org.apache.el.lang.ELSupport.coerceToType(" + resultName + ", " + methodName + ".getParameterTypes()[0])});");
148
            ctxt.generateJavaSource("                    }else{");
148
            ctxt.generateJavaSource("                    }else{");
149
            ctxt.generateJavaSource("                        " + methodName + ".invoke(" + targetName + ", new Object[]{null});");
149
            ctxt.generateJavaSource("                        " + methodName + ".invoke(" + targetName + ", new Object[]{null});");
150
            ctxt.generateJavaSource("                    }");
150
            ctxt.generateJavaSource("                    }");

Return to bug 54338