Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Introductions and multiple inheritance (sort of)

Hi,

AspectJ introduces a limited form of multiple inheritance into the Java language, using introductions. Multiple inheritance poses some interesting problems, such as resolving ambiguities in method calls, knowing whether attributes inherited from a common base through different base classes are duplicated or not, etc. I have made a few experiments and got to a few troubling conclusions. One of them is that when you implement an interface with an introduced method implementation, you cannot use super within an overriding method (super refers to the extended class, not the implemented interface). Another is that you cannot implement two different interfaces which implement methods (using introductions) with the same signature (this one is particularly troubling). Is there a detailed description of the way multiple inheritance works in AspectJ?

Thanks in advance,

Manuel


Back to the top