Uploaded image for project: 'Commons OGNL (Dormant)'
  1. Commons OGNL (Dormant)
  2. OGNL-93

expression compilation problem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7
    • 2.7
    • ExpressionCompiler
    • 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.

      Attachments

        Activity

          People

            jkuhnert Jesse Kuhnert
            snorbi Norbert Sándor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: