jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • groovy
  • GROOVY-1646

Inherited method establishing logic needs to be MetaClass aware

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Critical Critical
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: 3.0
  • 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

depends upon

Task - A task that needs to be done. GROOVY-2503 MOP 2.0 design inflluencing issues

  • Major - Major loss of function.
  • Open - The issue is open and ready for the assignee to start work on it.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Guillaume Laforge added a comment - 13/Feb/07 10:18 AM

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

Show
Guillaume Laforge added a comment - 13/Feb/07 10:18 AM Isn't it something you've been working on?
Hide
Permalink
Alex Tkachman added a comment - 13/Nov/07 12:19 AM

This should go to 2.0

Show
Alex Tkachman added a comment - 13/Nov/07 12:19 AM This should go to 2.0

People

  • Assignee:
    Unassigned
    Reporter:
    Graeme Rocher
Vote (0)
Watch (1)

Dates

  • Created:
    11/Jan/07 8:35 AM
    Updated:
    16/Oct/08 12:51 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.