Thanks for that. I played some more and I see the errors you mention *if* jdt weaving is switched on. With jdt weaving switched off I don't see them (I usually run with it off so that's why I wasn't seeing them). Please raise a bug against AJDT for this:
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=AJDT Errors reported like that (solely in the editor) are irritating but shouldn't affect proper compilation of the project. cheers, Andy 2010/1/29 Manuel Menezes de Sequeira <[email protected]>: > Hi Andy, > The messages in the problems view are exactly as you said. The messages in > the editor are as following: > Line 2 (error): > Duplicate method none() in type Test > Line 3 (warning): > advice defined in Test has not been applied [Xlint:adviceDidNotMatch] > Line 4 (warning): > The local variable x is never read > Line 7 (with errors): > Multiple markers at this line > - Return type for the method is missing > - Duplicate method none() in type Test > - Syntax error on token ":", ; expected > - advice defined in Test has not been applied > [Xlint:adviceDidNotMatch] > If I comment line > Class<?>[] x; > so that it looks like > Class/*<?>*/[] x; > the errors disappear. > I'm using Eclipse 3.5.1 (Build id: M20090917-0800) with Version: > 2.0.3.e35x-20100126-1200 (AspectJ version: 1.6.8.20100108135337). > Manuel > 2010/1/29 Andy Clement <[email protected]> >> >> Hi Manuel, >> >> Can you say which errors you are getting? I pasted your sample into >> an aspectj file and saw three warnings: >> >> Description Resource Path Location Type >> advice defined in Test has not been applied [Xlint:adviceDidNotMatch] >> Test.aj >> advice defined in Test has not been applied [Xlint:adviceDidNotMatch] >> Test.aj >> The local variable x is never read Test.aj >> >> In both the editor and the problems view. All valid. >> >> I thought it might be that you had opened the file in the Java editor >> rather than the AspectJ editor, but in the java editor I don't see any >> errors either. >> >> Andy >> >> 2010/1/28 Manuel Menezes de Sequeira <[email protected]>: >> > Hi all! >> > I came across what seems to be a bug in AJDT. If you build a project >> > containing a single Test aspect >> > >> > public aspect Test { >> > private pointcut none(); >> > before(): none() { >> > Class<?>[] x; >> > } >> > before() : none() {} >> > } >> > >> > then several errors are shown in the editor window, though none are >> > shown in >> > the package explorer. >> > Any ideas? >> > Regards, >> > Manuel >> > -- >> > http://www.google.com/profiles/MMSequeira >> > Sent from Lisboa, Portugal >> > _______________________________________________ >> > aspectj-users mailing list >> > [email protected] >> > https://dev.eclipse.org/mailman/listinfo/aspectj-users >> > >> > >> _______________________________________________ >> aspectj-users mailing list >> [email protected] >> https://dev.eclipse.org/mailman/listinfo/aspectj-users > > > > -- > http://www.google.com/profiles/MMSequeira > Sent from Lisboa, Portugal > _______________________________________________ > aspectj-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/aspectj-users > > _______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
