https://issues.apache.org/bugzilla/show_bug.cgi?id=53792
Adrian Moos <adrian.m...@bedag.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME |--- --- Comment #3 from Adrian Moos <adrian.m...@bedag.ch> --- That because you have not quite tested the same thing :-) Yes, #{beanA.setBean(beanB)} works as intended, because its "target" is #{beanA}, which doesn't contain a method invocation expression. That's why I wrote: > but in this expression there is an additional method invocation expression > before that ... Anyway, here is your test case (to be included in TestMethodExpressionImpl.java): @Test public void testBug53792c() { MethodExpression me = factory.createMethodExpression(context, "#{beanA.sayHello().length()}", null, new Class<?>[] {}); me.invoke(context, null); } which currently throws: javax.el.PropertyNotFoundException: Property 'sayHello' not found on type org.apache.el.TesterBeanA at javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:237) at javax.el.BeanELResolver$BeanProperties.access$1(BeanELResolver.java:234) at javax.el.BeanELResolver.property(BeanELResolver.java:325) at javax.el.BeanELResolver.getValue(BeanELResolver.java:85) at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:67) at org.apache.el.parser.AstValue.getTarget(AstValue.java:121) at org.apache.el.parser.AstValue.invoke(AstValue.java:245) at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278) at org.apache.el.TestMethodExpressionImpl.testBug53792c(TestMethodExpressionImpl.java:473) -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org