Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.7
-
None
-
tapestry 4.1.2-sn
Description
@test.Test@getA().isProperty()
and
package test;
public class Test
{
public static class A
{
public boolean isProperty()
{ return false; }}
public static A getA()
{ return new A(); }}
will fail with
java.lang.RuntimeException: ognl.MethodFailedException: Method "isProperty" failed for object $Home_95@3c1[Home] [java.lang.NoSuchMethodException: isProperty()]
...
Caused by: java.lang.RuntimeException: ognl.MethodFailedException: Method "isProperty" failed for object $Home_95@3c1[Home] [java.lang.NoSuchMethodException: isProperty()]
ognl.ASTMethod.toGetSourceString(ASTMethod.java:292)
ognl.ASTChain.toGetSourceString(ASTChain.java:273)
... 90 more
Caused by: ognl.MethodFailedException: Method "isProperty" failed for object $Home_95@3c1[Home] [java.lang.NoSuchMethodException: isProperty()]
ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:948)
ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)
ognl.OgnlRuntime.callMethod(OgnlRuntime.java:974)
ognl.ASTMethod.getValueBody(ASTMethod.java:90)
ognl.ASTMethod.toGetSourceString(ASTMethod.java:284)
... 91 more
It seems that it doesn't use the correct expression root.