Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] help on pointcuts weaving

Hi
 
It has been stated several times that you can not use the Socket.getInetAddress.getLocalHost(..))  syntax. What you have written is Java syntax, not AspectJ. You need to use InetAdress.getLocalHost, and optionally add a clause for cflow(Socket)
 
Hermod
 


From: aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Neeraja Maniyani
Sent: Thursday, June 26, 2008 11:32 AM
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] help on pointcuts weaving

 
I have mistaken the previous result shown in the decompiled class file..It is obviuos that the advice got woven at that many points.
 
But for this point cut,
 
call(public * Socket.getInetAddress.getLocalHost(..)) && withincode(public * testSockets.*(..));
 
I am still not able to weave in the advice.Is there any other way to call these methods.
 
thanks.
 
neeraja.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Back to the top