Community
Participate
Working Groups
Build Identifier: We are having problem running the AspectJ LTW whith signed jars. It appears to be that the LTW is not honoring the ProtectionDomain when creating the inner classes of the woven class, i.e. $AjcClosure1. Reproducible: Always Steps to Reproduce: Instructions on how to reproduce the problem with the attached zip-file Prerequisites: - Maven 2 installed - java should be on the path 1. Compile and package > mvn clean package 2. Run without signing the jar > mvn exec:exec ==> "pre...Foo.bar()...post" is written on stdout. 3. Sign the jar > mvn jarsigner:sign 4. Run again > mvn exec:exec ==> ClassNotFoundException!!!
Created attachment 181157 [details] Small program to reproduce the problem A small maven project with code to reproduce the problem. Please read the README file for instructions.
Just to be clear: This is preventing us to use the AspectJ, since we're using signed jars.
fixed! thanks for the great test program. The protection domain used for a class that is about to be defined is also used for generated classes (generated during the weaving of that type).