diff options
author | aclement <aclement> | 2011-05-02 18:40:04 +0000 |
---|---|---|
committer | aclement <aclement> | 2011-05-02 18:40:04 +0000 |
commit | a4d3035b38c750194cec4385f4c9724c1d50f145 (patch) | |
tree | cbd39d2800d216e9d40f9e35ac51331506452cea /loadtime5 | |
parent | bb422ca92588a3dbdb4dbc78af0e881364a98d77 (diff) | |
download | aspectj-a4d3035b38c750194cec4385f4c9724c1d50f145.tar.gz aspectj-a4d3035b38c750194cec4385f4c9724c1d50f145.zip |
328099
Diffstat (limited to 'loadtime5')
-rw-r--r-- | loadtime5/java5-src/org/aspectj/weaver/loadtime/ClassPreProcessorAgentAdapter.java | 17 |
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); } - } |