Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Matching unwanted calls to toString()

On Mon, Mar 22, 2010 at 11:26 AM, Andy Clement <andrew.clement@xxxxxxxxx> wrote:
>> I think the "args" pointcut expression is a binding device for the
>> arguments of an advised method, not a filtering device -- correct me
>> if I'm wrong, folks.
>
> Not quite right, it can be used as a filtering device but it filters
> on the runtime type information and not the compile time type
> information.  Due to it involving runtime type information, it cannot
> be used with declare warning/error.
>
> Andy
>
Ah, I didn't realize (or I forgot) that "args" filters at runtime as
well.  Good to know (or remember)!

:)

-matthew


Back to the top