|Load Time Weaving [message #484436]
||Mon, 07 September 2009 08:56
Originally posted by: bepivin.libero.it|
hi to all,
a newbie question: i'm trying to use aspectj with a big project and with
Load Time Weaving. I had success with using Load Time Weaving with a hello
world java program but the big project isn't working.
What i'm doing is a simple adding a JOptionPane.showMessageDialog before
and after a method.
With hello.java (the small java program) is all ok.
With the big project the aspect is never called.
The aspect is the same for the small and the big project.
With the big project I have this warning when i run:
warning: javax.* types are not being woven because the weaver option
'-Xset:weaveJavaxPackages=true' has not been specified
Is this the problem? And why I have no warning with the hello.java project?
Thanks in advance
|Re: Load Time Weaving [message #600689 is a reply to message #484436]
||Fri, 18 September 2009 14:35
| Andrew Eisenberg
Registered: July 2009
The problem is that java.* and javax.* packages aren't open to the load time weaver. This is because there is a circular dependency issue going on. The weaver requires java.* and javax.* pacakges to be loaded before the weaver can be started, but once these packages are loaded, the weaver can't work on them.|
If you can advise the method calls instead of the method executions, this will work (but only method calls outside of java.* and javax.* packages will work).
Please send a message to the AspectJ mailing list to discuss this further:
Powered by FUDForum
. Page generated in 0.15144 seconds