[aspectj-users] How to determine whether a nested class constructor is being called

2008-11-15 Thread Piers Powlesland
Hi I am attempting to write an aspect that checks for null arguments passed to any constructors defined in our project, the problem i am having is that calls to constructors of inner classes get passed a *secret* parameter which evaluates to null. I cannot seem to figure out a way to dete

[aspectj-users] Pointcuts as a type?

2008-11-01 Thread Piers Powlesland
Hi All I was wondering why pointcuts have been implemented in the way that they have and not as a usual java type? Currently I keep on having cause to wish for the ability to pass pointcuts as parameters to advice and also to store them in a list. Will pointcuts be modified in the future

[aspectj-users] How can you access an aspect from a normal java class

2008-10-31 Thread Piers Powlesland
Hi I would like to get access to an aspect from a java class so that I can set some of its fields. I have tried the following form but Eclipse gives the error "TestAspect cannot be resolved". Class G{ public void setAspectField(){ TestAspect.aspectOf().x = 0;