Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] A Porting Problem

I think you want

 

public aspect Abc perthis( this(Xyz) ) // consider restricting this pointcut

{

    private Xyz myRef;

    ...

    after(Xyz x) returning(): this (x) && execution( new(..) )

    {

        myRef = x;

    }

    ...

}

 


From: aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Aamir Raheem
Sent: Tuesday, March 29, 2005 7:18 AM
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] A Porting Problem

 

Hi,

 

I have encountered following code written in AspectJ version 0.7-beta-11:

 

public aspect Abc of eachobject( instanceof(Xyz) )

{

    private Xyz myRef;

    ...

    after(Xyz x) returning(): instanceof (x) && receptions( new(..) )

    {

        myRef = x;

    }

    ...

}

 

I want to port it to latest stable versions of AspectJ but am facing problems. Kindly help me out.

 

A lot of thanks in advance.

 

Regards,

Aamir Raheem,

FAST-NUCES,

Pakistan.



Express yourself instantly with MSN Messenger! MSN Messenger Download today it's FREE!


Back to the top