Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] Constructor join point

 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Fernando Ferreira Campos wrote:
> I have a aspect that traces constructors calls, like this:
> 
> public aspect ConstructorAspect{
>     pointcut contructorExec() : execution(*.*.new(..)) &&
> !within(ConstructorAspect); 
> 
>     before() : contructorExec(){
>         System.out.println( "Constructor executed" );
>     }
> }
> 
> 
> When I weave it into a pre-compiled .jar file and run the
> application, nothing is printed. What is wrong? 
Are you sure, that the jar file is actually woven? You have to put it
into your ASPECTPATH.

Eric

- -- 
Eric Bodden
Chair I2 for Programming Languages and Program Analysis
RWTH Aachen University

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3

iQA/AwUBQZJg6MwiFCm7RlWCEQKpIgCfcggazOXOUOQMLbFE61TuAAfuGnwAnjr9
RX8aycKauMcZPFGQV8UjH+Rz
=Pi6y
-----END PGP SIGNATURE-----




Back to the top