]> source.dussan.org Git - aspectj.git/commitdiff
120375: reweaving enabled...
authoraclement <aclement>
Thu, 19 Nov 2009 18:33:01 +0000 (18:33 +0000)
committeraclement <aclement>
Thu, 19 Nov 2009 18:33:01 +0000 (18:33 +0000)
loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java

index aa5418c623c930ceac51425b07721c871ea55e37..4dafb35bd940c93b5fa41e196c5b8fd8cee4d456 100644 (file)
@@ -48,13 +48,10 @@ public class ClassPreProcessorAgentAdapter implements ClassFileTransformer {
         */
        public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain,
                        byte[] bytes) throws IllegalClassFormatException {
-               if (classBeingRedefined == null) {
-                       return s_preProcessor.preProcess(className, bytes, loader);
-               } else {
-                       // FIXME av for now we skip hotswap. We should think more about that
-                       new Exception("AspectJ5 does not weave hotswapped class (" + className + ")").printStackTrace();
-                       return bytes;
+               if (classBeingRedefined != null) {
+                       System.err.println("INFO: (Enh120375):  AspectJ attempting reweave of '"+className+"'");
                }
+               return s_preProcessor.preProcess(className, bytes, loader);
        }
 
 }