Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Array Constructor Pointcut ?

Hi,

Have you tried

call (new *[..]) or
call (new *[](..))?

Actually, neither of these compile for me.

Cheers,

Dave

I have not tried yet.

Bo
----------------------------------------------------------
  Dr. Bo Yi
  WAS L3 Support
  IBM Toronto Lab
  A2-713/Q2Z/8200/MKM
  8200 Warden Ave. Markham ONT. L6G 1C7
  Phone: 905-413-4819
  Tie Line: 969-4819
  E-Mail: boyi@xxxxxxxxxx



"David J. Pearce" <d.pearce@xxxxxx. ac.uk> To Sent by: aspectj-users@xxxxxxxxxxx aspectj-users-adm cc in@xxxxxxxxxxx Subject [aspectj-users] Array Constructor 06/16/2004 10:21 Pointcut ? AM Please respond to aspectj-users



Hi All,

I have an interesting problem, which I'm hoping someone will know the
answer to.  Consider this snippet:

 > ...
 > Random a = new Random[1234];
 > ...

What pointcut describes the above call to an array constructor ?
I have tried using the following pointcuts for my advice:

pointcut Z() : call(*.new(..));
pointcut Y() : call(*.new[](..));
pointcut X() : call(*[].new(..));
pointcut W() : call(new(..));
pointcut V() : call(new[](..));

But nothing appears to work, although they do all compile.  Any help
would be appreciated!

Thanks,

David J. Pearce

________________________________________





Back to the top