Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] withincode(clinit)

Oops...

You are right. This cannot work in AspectJ, since withincode() expects a method pattern and not a pointcut. It seems like supporting such would be an improvement.

-Ramnivas

pope wrote:

[quote Ramnivas Laddad::on 12/21/2004 11:14 AM]

How about:

withincode(staticinitialization(TypeX))

-Ramnivas


I was not sure this is supported :-). I missed this in your excellent book. Many thanks.

:pope

===
Ramnivas Laddad,
Author, AspectJ in Action
http://ramnivas.com

pope wrote:

Hi!

I am trying to figure out if there is a special syntax for using a withincode(<clinit>) other than:

within(TypeX) && !withincode(* TypeX.*(..)) && !withincode(TypeX.new(..))

many thanks for your help,
:pope
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users


_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top