summaryrefslogtreecommitdiffstats
path: root/weaver/testsrc
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2002-12-23 23:17:47 +0000
committerjhugunin <jhugunin>2002-12-23 23:17:47 +0000
commitc453b5555c372b0052abd037adf8d6bd9b1e95b2 (patch)
tree41dd7ca19a9148fc61fa7ac53e4d21c4ad02542e /weaver/testsrc
parent4e52d3a759b8b5b5566c186eacbffbdff21058fd (diff)
downloadaspectj-c453b5555c372b0052abd037adf8d6bd9b1e95b2.tar.gz
aspectj-c453b5555c372b0052abd037adf8d6bd9b1e95b2.zip
fixed to use A.aspectOf() instead of A.ajc$perSingletonField for getting
singleton aspects this lets us produce much better errors when the field is null
Diffstat (limited to 'weaver/testsrc')
-rw-r--r--weaver/testsrc/Aspect.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/weaver/testsrc/Aspect.java b/weaver/testsrc/Aspect.java
index bdb8108f4..1447c5335 100644
--- a/weaver/testsrc/Aspect.java
+++ b/weaver/testsrc/Aspect.java
@@ -329,6 +329,8 @@ public class Aspect {
}
public static Aspect aspectOf() {
+ if (ajc$perSingletonInstance != null) return ajc$perSingletonInstance;
+
return (Aspect) ajc$perCflowStack.peekInstance();
}