[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] Member introduction / aspectj-1.5M5 / -1.5 mode
|
annotations in the 'internal' package are tags we put in there during
compilation for use by the AspectJ reflection API. There is no change
in syntax causing you problems here. I just tried your program and it
worked fine for me at both the 1.4 and 1.5 level... have you checked
your classpath to ensure you don't have a rogue old version of
aspectjrt.jar around? Check that the aspectjrt.jar you are using
contains the annotation that it is complaining about, mine does:
C:\aspectj1.5.0M5\lib>jar -tvf aspectjrt.jar | grep ajcITD
487 Wed Nov 16 11:02:50 GMT 2005
org/aspectj/internal/lang/annotation/ajcITD.class
Andy.
On 18/11/05, Alessandro Evangelista <evangelista@xxxxxxx> wrote:
> I am getting the following error
>
> [error] org.aspectj.internal.lang.annotation.ajcITD cannot be resolved
> to a type
>
> using
>
> * aspectj-1.5M5
> * Java 1.5.0_04
> * -1.5 mode
>
> and a very simple aspect which introduces a member introduction to a
> Test class.
>
> Compilation with 1.4 compliance level is successful.
>
> The source files are reported below as the command-line of the two
> compiler executions.
>
> Is there any change in the AJ syntax I am not aware of?
>
> Thank you for your feedback.
>
>
>
> -- Aspect.aj --
>
> package test;
>
> public aspect Aspect {
>
> public void Test.test() {
> System.out.print("Hello");
> }
>
> }
>
> -- Test.java --
>
> package test;
>
> public class Test {
> }
>
>
> -- Successful compilation with 1.4 compliance level --
>
> C:\usr\src\test-aj-prg\src\main\java>\usr\bin\aspectj-1.5M5\bin\ajc -1.4
> .\test\Test.java .\test\Aspect.aj
>
> -- Failed compilation in 1.5 mode --
>
> C:\usr\bin\aspectj-1.5M5\bin\ajc -1.5 .\test\Test.java .\test\Aspect.aj
> C:\usr\src\test-aj-prg\src\main\java\test\Aspect.aj:1 [error]
> org.aspectj.internal.lang.annotation.ajcITD cannot be resolved to a type
> package test;
>
> public aspect Aspect {
>
> public void Test.test() {
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> 1 error
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>