From 19355dd4021dae5388a4a6178f08d57595b59b1d Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 19 Nov 2009 18:33:01 +0000 Subject: [PATCH] 120375: reweaving enabled... --- .../weaver/loadtime/ClassPreProcessorAgentAdapter.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java b/loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java index aa5418c62..4dafb35bd 100644 --- a/loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java +++ b/loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java @@ -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); } } -- 2.39.5