Uploaded image for project: '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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.6.1
    • 1.6.2
    • None
    • None
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            shrivallabh Shrivallabh Deshmukh
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: