Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Cannot register non aspect JDK 1.7

Hi,

I have just started playing with aspectj, I am really stuck on this error:

Cannot register non aspect: com$knitelius$aspect7$AOPMonitor , com.knitelius.aspect7.AOPMonitor
java.lang.RuntimeException: Cannot register non aspect: com$knitelius$aspect7$AOPMonitor , com.knitelius.aspect7.AOPMonitor

AOPMonitor looks as follows (I am using 1.6.10)

@Aspect
public class AOPMonitor {
   
    @Around(value = "execution(* *(..)) && @annotation(profiled)", argNames = "pjp,profiled")
    public Object doStuff(final ProceedingJoinPoint pjp) throws Throwable {
        System.out.println("point cut!!!");
        return pjp.proceed();
    }
}

Any help would be greatly appreciated.

Thanks in advanced,

Stephan

______________________________________
Stephan Knitelius
stephan@xxxxxxxxxxxxx

Back to the top