Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] array pointcuts?

Matthew,

> >but I wonder if 'call' type joint points would be feasible.
> If the join point doesn't exist then neither execution nor call pointcuts
> will match. This isn't a question of the target class not being exposed to
> the weaver e.g. you are tying to advise the construction of a library class
> so you must use call rather than execution. I think what you are thinking
> of is a "call to object allocation" join point which exists at the bytecode
> level (new, newarray, ...) but not in the Java language: Java doesn't give
> you uninitialized objects (array elements are initialized to their default
> values).

Yes, I was thinking of it like that. But as you say, if there is no join point
to start with, execution nor call will work.
Thanks for the quick response!

Cheers,
Mark

> Matthew Webster
> AOSD Project
> Java Technology Centre, MP146
> IBM Hursley Park, Winchester,  SO21 2JN, England
> Telephone: +44 196 2816139 (external) 246139 (internal)
> Email: Matthew Webster/UK/IBM @ IBMGB, matthew_webster@xxxxxxxxxx
> http://w3.hursley.ibm.com/~websterm/



Back to the top