Hi Tomek, I created a pointcut that did what you wanted:
get(@Foo(name="") * *) I was *most surprised* when it failed to compile with an error on the "". I created https://bugs.eclipse.org/bugs/show_bug.cgi?id=352363 and have just committed a fix, should be in a dev build later today. cheers Andy On 18 July 2011 03:17, tomasza <[email protected]> wrote: > I'm trying to use aspectj in order to enforce correct usage of annatation. > This annotation has a parameter called name and everywhere when this > annotation is used parameter name should be explicitly set. Default value of > name is empty string so I need to find usage (I use get pointcut) of > annotation with name paramter set to empty string and declare error when it > is found, but I cannot find syntax to match empty parameter. Is it possible? > > Regards, > Tomek > > -- > View this message in context: > http://aspectj.2085585.n4.nabble.com/Adnotation-without-declared-parameter-tp3674940p3674940.html > Sent from the AspectJ - users mailing list archive at Nabble.com. > _______________________________________________ > aspectj-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/aspectj-users > _______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
