Velocity
  1. Velocity
  2. VELOCITY-708

The Method map does not get created correctly when the inspected class implements interface which itself has a rich inheritance tree

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.6.1
    • Fix Version/s: 1.6.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      ALL

      Description

      Consider the following implementation

      public interface MySuperInterface() {
      public getName()[
      }

      public interface MyInterface extends MySuperInterface() {
      }

      class MyClass implements MyInterface {
      .....
      }

      If I provide an instance of MyClass in the context, then engine is unable to resolve reference following reference

      $myClasref.name

      The bug is in the following method -> org.apache.velocity.util.introspection.ClassMap.createMethodCache().

      This method does not introspect the super interface.

        Activity

        Shrivallabh Deshmukh created issue -
        Nathan Bubna made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Duplicate [ 3 ]
        Fix Version/s 1.6.2 [ 12313574 ]
        Nathan Bubna made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Workflow jira [ 12453174 ] Default workflow, editable Closed status [ 12551600 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12551600 ] jira [ 12552485 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Shrivallabh Deshmukh
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development