Skip to main content

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

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 <Manuel.Sequeira@xxxxxxxx>:
> 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
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>


Back to the top