[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Cannot get reference to the object

     pointcut instanceTracker(Vessel ves) : call(Vessel+.new(..))&&target(ves) ;
before (Vessel ves) : instanceTracker(ves){// this is the place *************************
System.out.println(thisJoinPoint);
System.out.println(ves.getClass().getCanonicalName());
}

but at "this is the place" the compiler gives me warning : advice defined in cut has not been applied
[Xlint:adviceDidNotMatch]
What is the problem?????

if i do :


pointcut instanceTracker() : call(Vessel+.new(..)) ;
before () : instanceTracker(){// this is the place *************************
System.out.println(thisJoinPoint);
// System.out.println(ves.getClass().getCanonicalName());
}


everything works
anyone knows whats the problem?


Make your browsing faster, safer, and easier with the new Internet Explorer® 8. Optimized for Yahoo! Get it Now for Free!