I
changed incremental build to full build and the error went away. Why does this
happen ?
Mohan
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
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.
|