Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] introductions and inheritance

hi,

i have the following problem:

i have to classes BaseBar and DefaultBar where
DefaultBar extends Basebar. i have also an interface IFoo
to which i introduced some code with an aspect.

public aspect IFooImplementation{
   public void IFoo.doFoo(){...}}

now i want to extend BaseBar and DefaultBar with this
interface. therefore i do this:

public aspect Implementor{
   declare parents: BaseBar implements IFoo;}

now this gives me the following error
DefaultBar.java:8 Class must implement the inherited abstract method
doFoo.

i tried to resolve this by doing this
public aspect Implementor{
   declare parents: BaseBar implements IFoo;
   declare parents: DefaultBar implements IFoo;}

but still the same error.
only when i am leaving out the implementation to BaseBar
it works.

public aspect Implementor{
   declare parents: DefaultBar implements IFoo;}

is this a bug or a feature?

ciao robertj

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Back to the top