From a4d3035b38c750194cec4385f4c9724c1d50f145 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 2 May 2011 18:40:04 +0000 Subject: [PATCH] 328099 --- .../loadtime/ClassPreProcessorAgentAdapter.java | 17 ++++++++--------- 1 file 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); } - } -- 2.39.5