Community
Participate
Working Groups
Example: ------------------------------------------------------------- public class TypePattern { public static Foo<String>.Bar<String> x; public static void main(String[] ps) { Object f = x; } } class Foo<T> { class Bar<S> { } } aspect Get { pointcut foo() : get(Foo<String>.Bar<String> *.x); before() : foo() { System.out.println("Get of x!"); } } ------------------------------------------------------------- Error message: [error] Syntax error on token ".", "name pattern" expected pointcut foo() : get(Foo<String>.Bar<String> *.x); The advice is applied if I use Foo.Bar<String>, but I think it would be nice if you could specify the actual type parameter of the enclosing class as well.
See also: http://dev.eclipse.org/mhonarc/lists/aspectj-dev/msg02015.html
look at this for 1.5.4 but might get bumped to 1.6
unsetting the target field which is currently set for something already released