Hello all,

My objective is to write a utility function that return sum of numbers passed in parameter and call the function in JSP using EL.

Here is my Java method.
Java Code:
        public static int sumOfInt(int...x) {  
              
            int sum=0;  
            for(int a:x){  
                sum=sum+a;  
            }  
            return sum;  
        }
Here is my tld config

Java Code:
    <function>  
    <name>sumOfInt</name>  
    <function-class>com.Extend</function-class>  
    <function-signature>  
    int sumOfInt(int... )  
    </function-signature>  
    </function>

Here is my JSP
Java Code:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"  
        pageEncoding="ISO-8859-1" isELIgnored="false"%>  
        <%@ taglib prefix="m" uri="gradeFunction" %>  
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">  
    <html>  
    <head>  
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">  
    <title>Insert title here</title>  
    </head>  
    <body>  
    ${ m:sumOfInt(85,34)} <br>  
    </body>  
    </html>


When I call my JSP page on browser, I am getting "method was not found on the class". But when I modify the method for calculating sum of two numbers and its tld config, It was working fine.

I think, EL function is not working for var arg method.

Is this a open issue? If not, How can we fix it?