[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [aspectj-users] aspectj1.2 error
|
Hi,
I don't know if this is the cause but you should add
import org.aspectj.lang.*;
Hope it helps
Carlos Sanchez
A Coruña, Spain
Oness Project
http://oness.sourceforge.net
> -----Original Message-----
> From: aspectj-users-admin@xxxxxxxxxxx
> [mailto:aspectj-users-admin@xxxxxxxxxxx] On Behalf Of Jaime Nino
> Sent: Monday, June 14, 2004 5:28 PM
> To: aspectj-users@xxxxxxxxxxx
> Subject: [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
> ====================================================================
>
>
>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>