Project: AspectJ
Bug 31460 Weaving class loader
Reported: 2003-02-10 10:35:35 | Status: resolved fixed

Hi! As discussed on the mailing list a few days ago I implemented a weaving class loader to enable bytecode based weaving at class loading time. The class loader is based on the URLClassLoader and can be used like any other URLClassLoader. In addition to that you can add aspects to the weaving loader. These aspects got woven into each class that is loaded. The test cases for the class loader aren't implemented yet, I am still thinking about how to implement them. I will contribute them later, okay? -Martin

Files changed in fix:
org.aspectj.ajdt.core/testdata/src1/LTWHelloWorld.java org.aspectj.ajdt.core/testdata/src1/ltw/LTWPackageTest.java org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/BcweaverJarMaker.java util/src/org/aspectj/util/FileUtil.java weaver/src/org/aspectj/weaver/ExtensibleURLClassLoader.java weaver/src/org/aspectj/weaver/WeavingURLClassLoader.java weaver/src/org/aspectj/weaver/tools/GeneratedClassHandler.java weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java weaver/src/org/aspectj/weaver/tools/WeavingClassLoader.java weaver/testsrc/BcweaverModuleTests.java weaver/testsrc/org/aspectj/weaver/BcweaverTests.java weaver/testsrc/org/aspectj/weaver/WeavingURLClassLoaderTest.java