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 2016/08/02 04:01:40 UTC

[Bug 55483] ELException when object has overloaded methods

https://bz.apache.org/bugzilla/show_bug.cgi?id=55483

Hao <ho...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #10 from Hao <ho...@gmail.com> ---
This change broke our code. I pasted our code here
http://stackoverflow.com/questions/38709068/argument-type-of-parameterized-method-call-in-el

We were able to call ${objectMapper.writeValueAsString(actionItems)} where
actionItems is an ArrayList, while writeValueAsString takes an Object argument. 

After this change, method invocation in EL can only find the method with exact
match of parameter types. And our method call is broken with
NoSuchMethodException.

It makes sense to find the exact match when there are method overloads. But if
there is no method overload, it should return the only matched method thus it
is compatible with the old code like ours.

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