Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] Annotation pointcut

Hello,

i want to hit all constructors of classes with an @Alien annotation:

	after(Object x) : execution((@Alien *) *.new(..)) && this(x) {

The result of this pointcut is a 'Syntax error on token "(", "constructor patterns have no return type" expected'. When I modify it a little bit to

	after(Object x) : execution((@Alien *).new(..)) && this(x) {

it works as expected. The only difference is the missing 2nd "*" in ((@Alien *) *.new(..)) from the first try. Is it a bug (build 20050225125806) or a misunderstanding from me?

regards
Oliver
--
Oliver Böhm
http://www.javatux.de



Back to the top