[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [aspectj-users] [aspect-users] Static initialization with JDK 1.5 annotation
|
Hi Andy,
Thanks for this fix. I will try it quickly.
Could you tell me the bug id of static initialization when this one is created?
Thanks,
Mickaël RIFFLARD
Atos Origin
-----Message d'origine-----
De : aspectj-users-admin@xxxxxxxxxxx [mailto:aspectj-users-admin@xxxxxxxxxxx]De la part de Andrew Clement
Envoyé : jeudi 13 janvier 2005 13:14
À : aspectj-users@xxxxxxxxxxx
Objet : Re: [aspectj-users] [aspect-users] Static initialization with JDK 1.5 annotation
That should work ... but it doesn't right now - I just tried it, we'll fix it right
away. Incidentally the problem you hit a little while ago with within(@Entity) not
working has now been fixed in the latest dev build (see bug 81863), you can get the
dev build from here:
http://download.eclipse.org/technology/ajdt/dev/aspectj-DEVELOPMENT.jar
Basically, this now works:
after() returning: within(@Entity *) && call(* *(..)) {
}
Andy.
---
Andy Clement
AspectJ
clemas@xxxxxxxxxx
Rifflard Mickaël <Mickael.Rifflard@xxxxxxxxxxxxxx>
Sent by: aspectj-users-admin@xxxxxxxxxxx
13/01/2005 09:19 Please respond to
aspectj-users@xxxxxxxxxxx
To<aspectj-users@xxxxxxxxxxx>
cc
Subject[aspectj-users] [aspect-users] Static initialization with JDK 1.5 annotation
Hi all,
I'm currently trying to match static initialization of objects with annotation.
I try this
public aspect StaticInit {
after() : staticinitialization(@Entity test.*) {
System.out.println(thisJoinPoint.getSignature().toString());
}
}
If I execute this aspect on source code :
@Entity
public class A {}
and
public class B {
public static void main(String[] args) {
A a = new A();
}
}
I obtain
B.<clinit>
A.<clinit>
I don't understand why my aspect match B initialization whereas this object does not have the annotation.
Is this a bad writing ? If so, what is the good writing ?
Thanks,
Mickaël RIFFLARD
Atos Origin
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users