aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2008-04-02 16:38:01 +0000
committeraclement <aclement>2008-04-02 16:38:01 +0000
commitee4050d41d3378212f2acee4d622507e2d8c28c5 (patch)
tree105c3329c17420918093a424511d7f28929cd6ab
parentb294e1a5b22bf4a16044818edf6697846daa42f6 (diff)
downloadaspectj-ee4050d41d3378212f2acee4d622507e2d8c28c5.tar.gz
aspectj-ee4050d41d3378212f2acee4d622507e2d8c28c5.zip
fix for Chris Beams' ltw problem: dont use javaClass post state eviction
-rw-r--r--weaver/src/org/aspectj/weaver/bcel/BcelObjectType.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelObjectType.java b/weaver/src/org/aspectj/weaver/bcel/BcelObjectType.java
index 8c710422d..6ea5a5853 100644
--- a/weaver/src/org/aspectj/weaver/bcel/BcelObjectType.java
+++ b/weaver/src/org/aspectj/weaver/bcel/BcelObjectType.java
@@ -596,9 +596,9 @@ public class BcelObjectType extends AbstractReferenceTypeDelegate {
annotationTargetKinds = null; // null means we have no idea or the @Target annotation hasn't been used
List targetKinds = new ArrayList();
if (isAnnotation()) {
- Annotation[] annotationsOnThisType = javaClass.getAnnotations();
+ AnnotationX[] annotationsOnThisType = getAnnotations();
for (int i = 0; i < annotationsOnThisType.length; i++) {
- Annotation a = annotationsOnThisType[i];
+ Annotation a = annotationsOnThisType[i].getBcelAnnotation();
if (a.getTypeName().equals(UnresolvedType.AT_TARGET.getName())) {
ArrayElementValue arrayValue = (ArrayElementValue)((ElementNameValuePair)a.getValues().get(0)).getValue();
ElementValue[] evs = arrayValue.getElementValuesArray();