]> source.dussan.org Git - aspectj.git/commitdiff
fix for Chris Beams' ltw problem: dont use javaClass post state eviction
authoraclement <aclement>
Wed, 2 Apr 2008 16:38:01 +0000 (16:38 +0000)
committeraclement <aclement>
Wed, 2 Apr 2008 16:38:01 +0000 (16:38 +0000)
weaver/src/org/aspectj/weaver/bcel/BcelObjectType.java

index 8c710422d2eb55c56d1a1746052be2246dc066d0..6ea5a5853e0dc7a23d7069e640d8fc0e9252af93 100644 (file)
@@ -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();