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?