[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] declare question

Im a newbie to AspectJ and i'm trying to do a simple declare parents _expression_ so a Class can implement an interface

i have class:

public class Client {
    public int num1(){
        return 1;
    public void aux()
        Ola o = new Client();
and aspect :

public aspect example{

     declare parents: Client implements Ola;

and the compiler says Type mismatch: cannot convert from Client to Ola