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

There are some bugs in incremental compilation of ITDs - they are
logged in bugzilla.

Things like:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=91859
https://bugs.eclipse.org/bugs/show_bug.cgi?id=92837

which involve exceptions, and I'm sure we have one about the situation
you've seen where the method isn't there until you full build. 
Hopefully we'll get to these post 1.5.0M3 and before 1.5.0 final.

Andy.
---
Andy Clement
AspectJ Development

On 24/08/05, mohan.radhakrishnan@xxxxxxxxxxxxx
<mohan.radhakrishnan@xxxxxxxxxxxxx> wrote:
>  
> 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. 
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
> 
> 
>


Back to the top