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 2021/07/13 16:34:54 UTC
[Bug 65358] Possible EL Bug — Method Matching with Varargs
https://bz.apache.org/bugzilla/show_bug.cgi?id=65358
Volodymyr Siedlecki <vo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #5 from Volodymyr Siedlecki <vo...@apache.org> ---
I was looking at this again (on 9.0.50).
I think there's still a bug here? Using the code below:
Bean bean = new Bean();
// JVM
bean.bark(bean.getDog()); // -> bark(Animal animal)
// EL
${ bean.bark(bean.dog) } // - > bark(Dog dog, String... text)
_______
public interface Animal {
}
public class Dog implements Animal {
}
public class Bean {
public String bark(Animal animal){
return "bark(Animal animal)";
}
public String bark(Dog dog, String... text){
return "bark(Dog dog, String... text)";
}
public Animal getDog(){
System.out.println("Returning Dog of type Animal");
return new Dog();
}
}
--
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