Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Problem with declare parents

Hi

I have two aspects B and C and a object A

public class A {
	
	public A()
	{		
	}
	
	public void doNothing()
	{		
	}

}
public aspect B {
	
	public void sayHello()
	{
		System.out.println("Hello World");
	}

}

public aspect C {

	public interface D {

		public void sayHello();
		
	}

	declare parents : B implements D;	
	declare parents : A extends B;
}

This leads to a compiler error stating:
Implicit super constructor B() is not visible for default constructor. Must define an explicit constructor

What is wrong since A does not see B

Hermod
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


Back to the top