[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] set() pointcut for private fields
|
After some experimenting I convince myself that this aspect weaves
just fine with static weaving, but for some reason does not get woven
with LTW. I guess this is a bug, so I opened a new report: https://bugs.eclipse.org/bugs/show_bug.cgi?id=255643
Jochen
On Nov 16, 2008, at 6:36 PM, Jochen Wuttke wrote:
Hi,
I have the following class and aspect structure:
public abstract class A {
private List<?> list;
public getList() {
if ( list == null ) {
list = m(); //m() creates a new list implementation
}
return list;
}
}
public privileged aspect AA {
before(): set(* A.list) {
//do something
}
}
Using load time weaving the assignment to list is not getting
advised. I tried different variants of the pointcut like set(*
*.list), but that doesn't help. The aspect gets registered an other
advice/pointcuts of the aspect do work as expected, so what am I
doing wrong here?
Jochen
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users