aboutsummaryrefslogtreecommitdiffstats
path: root/loadtime5
diff options
context:
space:
mode:
Diffstat (limited to 'loadtime5')
-rw-r--r--loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java17
1 files changed, 8 insertions, 9 deletions
diff --git a/loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java b/loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java
index 4dafb35bd..ae5a999c9 100644
--- a/loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java
+++ b/loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java
@@ -37,21 +37,20 @@ public class ClassPreProcessorAgentAdapter implements ClassFileTransformer {
}
/**
- * Weaving delegation
+ * Invokes the weaver to modify some set of input bytes.
*
* @param loader the defining class loader
- * @param className the name of class beeing loaded
- * @param classBeingRedefined when hotswap is called
- * @param protectionDomain
- * @param bytes the bytecode before weaving
- * @return the weaved bytecode
+ * @param className the name of class being loaded
+ * @param classBeingRedefined is set when hotswap is being attempted
+ * @param protectionDomain the protection domain for the class being loaded
+ * @param bytes the incoming bytes (before weaving)
+ * @return the woven bytes
*/
public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain,
byte[] bytes) throws IllegalClassFormatException {
if (classBeingRedefined != null) {
- System.err.println("INFO: (Enh120375): AspectJ attempting reweave of '"+className+"'");
+ System.err.println("INFO: (Enh120375): AspectJ attempting reweave of '" + className + "'");
}
- return s_preProcessor.preProcess(className, bytes, loader);
+ return s_preProcessor.preProcess(className, bytes, loader, protectionDomain);
}
-
}