Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] around advice and introduced method

I changed incremental build to full build and the error went away. Why does this happen ?
 
Mohan


From: aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of mohan.radhakrishnan@xxxxxxxxxxxxx
Sent: Wednesday, August 24, 2005 10:04 AM
To: aspectj-users@xxxxxxxxxxx
Subject: RE: [aspectj-users] around advice and introduced method

Hi,
 
I see this error though.
 
  pointcut callSetter( Bean b )
     : call( public void com.blueprint.util.test.Bean.setName( String ) ) && target( b );
  
  void around( Bean b ) : callSetter( b )  {
      -------------
      proceed( b );
      b.firePropertyChange( b, propertyName, oldValue, b.getName());
  }
void around( Bean b ) : callSetter( b )  {
      b.firePropertyChange( b, propertyName, oldValue, b.getName()); --> This is the inter-type declaration
  }

The method firePropertyChange(Bean, String, String, String) is undefined for the type Bean

Thanks,

Mohan



From: aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Ron DiFrango
Sent: Tuesday, August 23, 2005 6:33 PM
To: aspectj-users@xxxxxxxxxxx
Subject: RE: [aspectj-users] around advice and introduced method

Is the firePropertyChange the one that is mixed in?  If so is it suppose to be applied to the class Bean?  If that is the case then you code should just read:
 
void around( Bean b ) : callSetter( b )  {
      b.firePropertyChange( b, propertyName, oldValue, b.getName()); --> This is the inter-type declaration
  }
 
-----Original Message-----
From: mohan.radhakrishnan@xxxxxxxxxxxxx [mailto:mohan.radhakrishnan@xxxxxxxxxxxxx]
Sent: Tue 8/23/2005 7:45 AM
To: aspectj-users@xxxxxxxxxxx
Cc:
Subject: [aspectj-users] around advice and introduced method

Hi,
 
  I am using the mixin pattern( declaring an interface inside my aspect ). How do I call an introduced method from
within my around advice like this ?
 
  pointcut callSetter( Bean b )
     : call( public void com.blueprint.util.test.Bean.setName( String ) ) && target( b );
  
  void around( Bean b ) : callSetter( b )  {
      firePropertyChange( b, propertyName, oldValue, b.getName()); --> This is the inter-type declaration
  }
 
 
Thanks,
Mohan

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.


Back to the top