Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Join point on main

Hello,

I just started to use aspectJ in the Eclipse environment.
I have no difficulty to define  a join point on a method call except when I try with the main method.

The following is not executed :

pointcut main() : public static void MyClass.main(String[]);
	
before : main() {
  System.out.println("Entering main...");
}

Is it forbiden to set a pointcut on a static method ? If yes, why doesn't  the aspectJ compiler complain ?

Thanks in advance for the clarification,

Laurent

------------------------------------------

Faites un voeu et puis Voila ! www.voila.fr 




Back to the top