Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Issues with @DeclareParents and @DeclareMixin

Some very odd behavior indeed.  See below for comments

On Tue, Jun 16, 2009 at 7:15 PM, Dunstan, Tom (SACE Board) >
> Before I start - one odd thing I noticed is that when running both the 1.6.4 compiler and the the latest development
> one (from aspectj-DEVELOPMENT-20090612201410.jar), the compiler reports as being version 1.6.3, I don't know if that's
> a source of problems or not:
>
> >\development\aspectj1.6.4\bin\ajc -version
> AspectJ Compiler 1.6.3 (1.6.3 - Built: Tuesday Dec 23, 2008 at 17:12:30 GMT) - Eclipse Compiler 0.785_R33x, 3.3
>

This sounds fishy, but I'll let Andy speak to this.

<snip/>

> >\development\aspectj1.6.4\bin\ajc -outjar aspects.jar src\java\aspects\ParentsAspect.java -1.5
> [warning] bad version number found in c:\Development\aspectj1.6.4\lib\aspectjrt.jar expected 1.6.3 found 1.6.4
>
> 1 warning
>
> >\development\aspectj1.6.4\bin\ajc -aspectpath aspects.jar -outjar app.jar src\java\test\Foo.java -showWeaveInfo -1.5
> [warning] bad version number found in c:\Development\aspectj1.6.4\lib\aspectjrt.jar expected 1.6.3 found 1.6.4
>
> C:\Development\eclipse-workspace\e3.4.2\AspectJTestAspect\src\java\test\Foo.java:12 [error] The type Foo must implement
> the inherited abstract method Runnable.run()
> public class Foo {
>              ^^
>
> 1 error, 1 warning
>

@DeclareMixin was introduced in 1.6.4, so it looks like here you are
building against the 1.6.4 runtime jar, but compiling with the 1.6.3
weaver that doesn't understand about DeclareMixin.  But I can't say
how this could have happened.

<snip/>

> Interestingly, I get the first error for BOTH aspects in Eclipse using the AJDT, but only when Foo is in a different project to the aspects - when in the same project it works fine.

This is odd.  I won't be able to try this out until tomorrow, but it
will help if you can tell me what version of Eclipse / AJDT you are
using.

Also, are you getting a compiler error or an editor error (ie- is it
appearing in the editor only, or does it also appear in the problems
view)?


>
> So, am I doing something fundamentally wrong? Am I using a dodgy compiler? (I downloaded the dev and 1.6.4 builds from eclipse.org yesterday) Something else strange going on?
>
> Any help much appreciated.
>
> Cheers
>
> Tom
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>


Back to the top