Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] non nullable type

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
aspectj-users@xxxxxxxxxxx
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]








Back to the top