Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] aspectj1.2 error

I just installed aspectj1.2 and while testing it I received the following error:

   error can't find type org.aspectj.lang.JoinPoint

I double checked the file with the aspect defined but could not see any error in it. The error sounds more like a library
error to me.  Do I have to make any explicit aspectj imports?

Thanks for your help.

PS: Here are the files involved:

class Test {

   public void testMethod(){
      System.out.println("Test Method.");
   }

   public static void main(String args[]) {
     Test test = new Test();
     test.testMethod();
   }
}

public aspect TestAspect {

   pointcut callTestMethod() : call(public void Test.test*(..));

   before : callTestMethod() {
      System.out.println("Before call.");
   }

   after : callTestMethod() {
   System.out.println("After call.");
   }
}

--
====================================================================
	Jaime Nino
	Computer Science Dept. Univ of New Orleans, New Orleans La 70148
	voice : 504-280-7362    fax: 504-280-7228
====================================================================
	
	




Back to the top