[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [aspectj-users] Problem with declare parents
|
Title: RE: [aspectj-users] Problem with declare parents
Hermod
You have a class A extending an aspect B - this is not allowed by AspectJ.
Only an aspect can extend another aspect.
Elizabeth
-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx]On Behalf Of
hermod.opstvedt@xxxxxxxxx
Sent: July 26, 2007 5:00 AM
To: aspectj-users@xxxxxxxxxxx
Subject: [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.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users
CONFIDENTIAL AND PRIVILEGED INFORMATION NOTICE
This e-mail, and any attachments, may contain information that
is confidential, subject to copyright, or exempt from disclosure.
Any unauthorized review, disclosure, retransmission,
dissemination or other use of or reliance on this information
may be unlawful and is strictly prohibited.
AVIS D'INFORMATION CONFIDENTIELLE ET PRIVILÃGIÃE
Le présent courriel, et toute pièce jointe, peut contenir de
l'information qui est confidentielle, régie par les droits
d'auteur, ou interdite de divulgation. Tout examen,
divulgation, retransmission, diffusion ou autres utilisations
non autorisées de l'information ou dépendance non autorisée
envers celle-ci peut être illégale et est strictement interdite. |