History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GROOVY-1646
Type: Improvement Improvement
Status: Open Open
Priority: Critical Critical
Assignee: John Wilson
Reporter: Graeme Rocher
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

Inherited method establishing logic needs to be MetaClass aware

Created: 11/Jan/07 08:35 AM   Updated: 13/Nov/07 03:24 AM
Component/s: groovy-jdk
Affects Version/s: None
Fix Version/s: 1.6

Time Tracking:
Not Specified


 Description  « Hide
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



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Guillaume Laforge - 13/Feb/07 10:18 AM
Isn't it something you've been working on?

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