You can't advise local variables. However, normally you mostly care
about nulls being passed as the values of method arguments or return
values. You can write aspects that watch for those nulls.
dean
On Jul 23, 2008, at 3:27 AM, Mauro Baluda wrote:
I want to create an aspect that checks that any variable of a specific
type is not null when read
I would use a pointcut like get() for normal variables (not fields)
but I think it is not possible with AspectJ is it?
can you suggest other solution?
thanks
Mauro
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users
Dean Wampler, Ph.D.
dean at objectmentor.com
http://www.objectmentor.com
See also:
http://www.aspectprogramming.com AOP advocacy site
http://aquarium.rubyforge.org AOP for Ruby
http://www.contract4j.org Design by Contract for Java5
I want my tombstone to say:
Unknown Application Error in Dean Wampler.exe.
Application Terminated.
[Okay] [Cancel]
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users