You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2014/02/17 22:35:54 UTC

[Bug 56147] New: Problem Invoking overloaded methods using EL

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


[Bug 56147] Problem Invoking overloaded methods using EL

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56147

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
I've confirmed that this is an issue with the latest 7.0.x trunk but not with
8.0.x.

It should be possible to port the fix from 8.0.x but I need to a) id the right
patch and b) confirm that this isn't a side-effect of something that changed in
the spec between EL 2.2 and EL 3.0.

-- 
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


[Bug 56147] Problem Invoking overloaded methods using EL

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56147

--- Comment #3 from ujjets@gmail.com ---
Thank you.

-- 
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


[Bug 56147] Problem Invoking overloaded methods using EL

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56147

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #2 from Mark Thomas <ma...@apache.org> ---
I've found the 8.0.x bug and have back-ported the fix to 7.0.x along with some
supporting refactoring.

*** This bug has been marked as a duplicate of bug 55483 ***

-- 
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