Skip to main content

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


Hi Robert,

On first reading, this sounds like it *might* be related to a bug that was fixed in CVS a little while ago (see Bugzilla reports https://bugs.eclipse.org/bugs/show_bug.cgi?id=50939 and  https://bugs.eclipse.org/bugs/show_bug.cgi?id=43972).

Best regards,
George
________________________________________
George C. Harley




robert kuzelj <robert_kuzelj@xxxxxxxxx>
Sent by: aspectj-users-admin@xxxxxxxxxxx

03/03/2004 12:36

Please respond to
aspectj-users

To
aspectj-users@xxxxxxxxxxx
cc
Subject
[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


Back to the top