aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authormwebster <mwebster>2006-10-04 14:41:49 +0000
committermwebster <mwebster>2006-10-04 14:41:49 +0000
commit81427c39398b2134bffa5485adc0defaee7db607 (patch)
tree135f6dc28e36c23db5a3c337cdad4ad8d1ec6a42 /weaver
parent6978c427a1da9a291606d1e9a0a7ee98c436efb9 (diff)
downloadaspectj-81427c39398b2134bffa5485adc0defaee7db607.tar.gz
aspectj-81427c39398b2134bffa5485adc0defaee7db607.zip
Trace loader parent and class lookup
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/bcel/BcelWorld.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelWorld.java b/weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
index 2e13c5d54..a34454c8d 100644
--- a/weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
+++ b/weaver/src/org/aspectj/weaver/bcel/BcelWorld.java
@@ -77,6 +77,8 @@ import org.aspectj.weaver.patterns.FormalBinding;
import org.aspectj.weaver.patterns.PerClause;
import org.aspectj.weaver.patterns.Pointcut;
import org.aspectj.weaver.patterns.SimpleScope;
+import org.aspectj.weaver.tools.Trace;
+import org.aspectj.weaver.tools.TraceFactory;
public class BcelWorld extends World implements Repository {
private ClassPathManager classPath;
@@ -86,6 +88,8 @@ public class BcelWorld extends World implements Repository {
//private ClassPathManager aspectPath = null;
// private List aspectPathEntries;
+
+ private static Trace trace = TraceFactory.getTraceFactory().getTrace(BcelWorld.class);
// ---- constructors
@@ -347,7 +351,9 @@ public class BcelWorld extends World implements Repository {
private JavaClass lookupJavaClass(ClassPathManager classPath, String name) {
if (classPath == null) {
try {
- return delegate.loadClass(name);
+ JavaClass jc = delegate.loadClass(name);
+ if (trace.isTraceEnabled()) trace.event("lookupJavaClass",this,new Object[] { name, jc });
+ return jc;
} catch (ClassNotFoundException e) {
return null;
}