Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Member introduction / aspectj-1.5M5 / -1.5 mode

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



Back to the top