Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] -XlazyTjp and xlint-warning

Hello,

for the Option -XlazyTjp I used the Tracing example from the README-12.html (a little bit modified):


public aspect TraceAspect {

    public static boolean enabled = false;

    pointcut toBeTraced() : execution(* *(..)) && !within(TraceAspect);

    Object around() : toBeTraced() && if(enabled) {
        Object[] args = thisJoinPoint.getArgs();
        System.out.println(thisJoinPoint + ", arg's: " + args.length);
        return proceed();
    }

}


from the README: "The optimization is disabled at join points advised by around advice, and an Xlint warning will be displayed in these cases." But when I compile it (ajc -XlazyTjp -Xlint:warning -inpath src -d classes src/lazy/tjp/*) I expect to get a warning -- but no warning appears (AspectJ 1.5.0 M1).

regards
Oliver
--
Oliver Böhm
http://www.javatux.de



Back to the top