[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] AJDT bug?
|
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
<andrew.clement@xxxxxxxxx>
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
>
>
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users
--
http://www.google.com/profiles/MMSequeiraSent from Lisboa, Portugal