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

    • Type: Bug
    • Status: Closed
    • Priority: 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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: