tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55483] ELException when object has overloaded methods
Date Tue, 02 Aug 2016 04:01:40 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=55483

Hao <housevenn@gmail.com> changed:

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

--- Comment #10 from Hao <housevenn@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


Mime
View raw message