Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Load Time Weaving
Load Time Weaving [message #484436] Mon, 07 September 2009 12:56 Go to next message
Eclipse UserFriend
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

Bepi
Re: Load Time Weaving [message #486720 is a reply to message #484436] Fri, 18 September 2009 18:35 Go to previous messageGo to next message
Andrew Eisenberg is currently offline Andrew EisenbergFriend
Messages: 382
Registered: July 2009
Senior Member
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:
http://eclipse.org/aspectj/userlists.php
Re: Load Time Weaving [message #600689 is a reply to message #484436] Fri, 18 September 2009 18:35 Go to previous message
Andrew Eisenberg is currently offline Andrew EisenbergFriend
Messages: 382
Registered: July 2009
Senior Member
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:
http://eclipse.org/aspectj/userlists.php
Previous Topic:Load Time Weaving
Next Topic:Restrict weaver to only certain packages
Goto Forum:
  


Current Time: Fri Apr 26 06:47:46 GMT 2024

Powered by FUDForum. Page generated in 0.03253 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top