summaryrefslogtreecommitdiffstats
path: root/loadtime5
diff options
context:
space:
mode:
authoraclement <aclement>2009-11-19 18:33:01 +0000
committeraclement <aclement>2009-11-19 18:33:01 +0000
commit19355dd4021dae5388a4a6178f08d57595b59b1d (patch)
tree086326609af80661026656755a8a4c171414ff05 /loadtime5
parent9f342591a0c0f75efd5944cdb4e09dcc132d5e0f (diff)
downloadaspectj-19355dd4021dae5388a4a6178f08d57595b59b1d.tar.gz
aspectj-19355dd4021dae5388a4a6178f08d57595b59b1d.zip
120375: reweaving enabled...
Diffstat (limited to 'loadtime5')
-rw-r--r--loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java9
1 files 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);
}
}