On Mar 10, 2009, at 5:25 PM, Jochen Theodorou wrote: > so if there is a getMetaClass() method on the object which returns > groovy.lang.MetaClass and we inject an interface with an method of > exact > the same signature, would we then get the implementation from the > interface or the one from the object?
You'd get the one already on the object. No changing information already specified. If the object's class already had the interface, you wouldn't be able to inject it a second time. If the object's class already had a method (name/sig) of the interface, you wouldn't be able to inject that particular method, just the interface and its other methods (if any). Like the rest of the JVM, this design is consistently monotonic in its elaboration of class schema information. -- John --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "JVM Languages" group. To post to this group, send email to jvm-languages@googlegroups.com To unsubscribe from this group, send email to jvm-languages+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jvm-languages?hl=en -~----------~----~----~----~------~----~------~--~---