tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 56147] New: Problem Invoking overloaded methods using EL
Date Mon, 17 Feb 2014 21:35:54 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=56147

            Bug ID: 56147
           Summary: Problem Invoking overloaded methods using EL
           Product: Tomcat 7
           Version: 7.0.42
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Servlet & JSP API
          Assignee: dev@tomcat.apache.org
          Reporter: ujjets@gmail.com

Using apache-tomcat-7.0.42 on Windows 7 64bit

Using the below code in JSP :

<c:forEach var="item" items="${listItems }">
    <p>${item.someMethod("h") }</p>
</c:forEach>

results in:

javax.el.ELException: Cannot convert h of type class java.lang.String to class
java.lang.Class

I have the below methods :
       public void someMethod(String x) {
              someMethod(methodThatReturnClass(x))
       }

       public void someMethod(Class clz) {
              System.out.println("Class called");
       }

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message