Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] AJDT Intertype bug????

Matt,
 
The source code/aspect is all in my source code, but the class that I am trying to put the inter-type declarions is in stored in a JAR file that is put on the AspectJInPath.  The weird part is that I have other inter-type delcariotn [method level only though] that work just fine.  It justs seems to be a problem when I try to introduce memeber variables.
 
I do not think it is the eager parser because I have automatic builds turned off.  So the app only builds when I tell it too [large build that takes 100% of my CPU is the reason why, but that is a topic for another day].  And this build fails to complete.
 
Ron

	-----Original Message----- 
	From: Matt Chapman [mailto:mpchapman@xxxxxxxxx] 
	Sent: Thu 9/8/2005 5:43 AM 
	To: aspectj-users@xxxxxxxxxxx 
	Cc: 
	Subject: Re: [aspectj-users] AJDT Intertype bug????
	
	

	Ron,
	
	Is this source code all in the same file? Is it a .java or .aj file?
	Is it open in the Java or AspectJ editor? I'm assuming the error only
	appears in the editor, and not as a compile error in the problems
	view. In which case the error is coming from the Java eager parser. If
	you use the AspectJ editor, it should use the AspectJ eager parser,
	which doesn't report errors like that.
	
	Regards,
	
	Matt.
	
	On 08/09/05, Ronald R. DiFrango <difranr@xxxxxxxxxxx> wrote:
	> Here is another one:
	>
	> > I am using:
	> >
	> > Eclipse SDK
	> >
	> > Version: 3.1.0
	> > Build id: I20050627-1435
	> >
	> > Eclipse AspectJ Development Tools
	> >
	> > Version: 1.3.0
	> > Build id: 20050907105507
	> > AspectJ version: 1.5.0 M3a
	> >
	> > I have the following aspect that for some reason does not see my
	> > intertype declation correctly see below for an example:
	>
	>
	> > package com.tascon.tim.sofia.aop;
	> >
	> > public aspect SofiaJspTableRow {
	> >     private DataStoreEvaluator JspTableRow._dsEval = null;
	> >
	> >     /**
	> >      * Use this method to bind this component to an expression in a
	> > DataStore
	> >      * @param ds The DataStore to bind to.
	> >      * @param expression The expression to bind to.
	> >      * @see DataStoreEvaluator
	> >      */
	> >     public void JspTableRow.setExpression(DataStoreBuffer ds,
	> > DataStoreExpression expression) throws Exception {
	>
	>             // RRD: Error on this line because it can not see _dsEval
	>
	> >         this._dsEval = new DataStoreEvaluator(ds, expression);
	>
	>             // RRD: Error on this line because it can not see _dsEval
	>
	> >     }
	> >
	> >     pointcut generateHtml(JspTableRow row) :
	> >         execution(public void JspTableRow.generateHTML(..))
	> >         && target(row);
	> >
	> >     void around(JspTableRow row) throws java.io.IOException :
	> > generateHtml(row)
	> >     {
	>
	>               // RRD: Error on this line because it can not see _dsEval
	>
	> >         if (row._dsEval != null)
	> >         {
	> >             System.out.println("row._dsEval is NOT NULL.");
	> >         }
	> >         else
	> >         {
	> >             System.out.println("row._dsEval is null.");
	> >         }
	> >         proceed(row);
	> >     }
	> > }
	> >
	> > Any reason why this might be the case?  Please note this advice is
	> > being woven into an external JAR file, but I have other inter-types
	> > that work fine.
	> >
	> > Ron
	> > _______________________________________________
	> > aspectj-users mailing list
	> > aspectj-users@xxxxxxxxxxx
	> > https://dev.eclipse.org/mailman/listinfo/aspectj-users
	> >
	>
	>
	> _______________________________________________
	> aspectj-users mailing list
	> aspectj-users@xxxxxxxxxxx
	> https://dev.eclipse.org/mailman/listinfo/aspectj-users
	>
	>
	>
	_______________________________________________
	aspectj-users mailing list
	aspectj-users@xxxxxxxxxxx
	https://dev.eclipse.org/mailman/listinfo/aspectj-users
	

<<winmail.dat>>


Back to the top