[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Method parameter annotations...

Unless things have changed recently, AJ5 does not yet support matching on annotations on parameters. You could annotate the method and then use reflection on the parameter list to find any annotations. Not nearly as straightforward, unfortunately.


Kyle Lomeli wrote ..
> I am trying to define a pointcut that will match any method parameters
> that are annotated with @Untrusted. Among other things, I would like to
> be able to perform some operations on this parameter before allowing it
> to be used by the following method body (eg. data invalid character filtering,
> string truncation, etc...). Here is an example of the code with which I
> am testing:
> ...