Details

    • Type: Sub-task Sub-task
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: groovy-jdk
    • Labels:
      None

      Description

      Currently when I add methods to a super class with ExpandoMetaClass the child class is not able to see these new methods. This is because the logic that establishes the super methods is all private and only takes methods from the java.lang.Class instances and DGM:

        private void fillMethodIndex() {
            ...
      
             inheritMethods(superClasses,classMethodIndex);
      

      Instead inheritMethods needs to retrieve the MetaClass of the parent class, initialize it if it isn't already initialized and then get all the MetaMethod instances from it that don't already exist

        Issue Links

          Activity

          Mark Thomas made changes -
          Workflow jira [ 12969064 ] Default workflow, editable Closed status [ 12976845 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
          Mark Thomas made changes -
          Workflow jira [ 12730776 ] Default workflow, editable Closed status [ 12742697 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
          Jochen Theodorou made changes -
          Fix Version/s 3.0 [ 13489 ]
          Priority Critical [ 2 ] Major [ 3 ]
          Jochen Theodorou made changes -
          Issue Type Improvement [ 4 ] Sub-task [ 7 ]
          Parent GROOVY-2503 [ 61571 ]
          Jochen Theodorou made changes -
          Link This issue depends upon GROOVY-2503 [ GROOVY-2503 ]
          Jochen Theodorou made changes -
          Fix Version/s 1.6 [ 13832 ]
          Assignee John Wilson [ tug ]
          Fix Version/s 2.0 [ 13489 ]
          Guillaume Delcroix made changes -
          Fix Version/s 1.2 [ 13832 ]
          Fix Version/s 1.1 [ 13166 ]
          Hide
          Alex Tkachman added a comment -

          This should go to 2.0

          Show
          Alex Tkachman added a comment - This should go to 2.0
          Guillaume Delcroix made changes -
          Fix Version/s 1.1 [ 13166 ]
          Guillaume Delcroix made changes -
          Assignee Jochen Theodorou [ blackdrag ] John Wilson [ tug ]
          Hide
          Guillaume Delcroix added a comment -

          Isn't it something you've been working on?

          Show
          Guillaume Delcroix added a comment - Isn't it something you've been working on?
          Guillaume Delcroix made changes -
          Fix Version/s 1.1-beta-2 [ 10436 ]
          Graeme Rocher made changes -
          Field Original Value New Value
          Summary Inherited method establishing logic needs to be Inherited method establishing logic needs to be MetaClass aware
          Graeme Rocher created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              Graeme Rocher
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development