Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Is it possible to define a scope of methods accepting at least one non primitive argument?

I wish to write an aspect to assert that every argument is given. It should
only be applied to methods, having at least one non primitive parameter. For
instance:
public void f(int x)  <---- should not be in scope, because x cannot be
compared with the null
public void g(int x, String s) <-- should be in scope, because s can be
compared against the null

Is there a way to express such a scope in AspectJ?

Thanks.

--
View this message in context: http://aspectj.2085585.n4.nabble.com/Is-it-possible-to-define-a-scope-of-methods-accepting-at-least-one-non-primitive-argument-tp4195341p4195341.html
Sent from the AspectJ - users mailing list archive at Nabble.com.


Back to the top