]> source.dussan.org Git - aspectj.git/commitdiff
attempted fix for 245734
authoraclement <aclement>
Mon, 22 Sep 2008 23:58:59 +0000 (23:58 +0000)
committeraclement <aclement>
Mon, 22 Sep 2008 23:58:59 +0000 (23:58 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseResolvedMember.java

index 2ce7b3717919507a6e770c603ccb3966d6f47d44..c92ffe8a7d769fb194daa21b6f299eaa9b228d48 100644 (file)
@@ -89,14 +89,14 @@ public class EclipseResolvedMember extends ResolvedMemberImpl {
                // long abits =
                realBinding.getAnnotationTagBits(); // ensure resolved
                Annotation[] annos = getEclipseAnnotations();
-               if (annos == null)
+               if (annos == null) {
                        return null;
-               // TODO errr missing in action - we need to implement this! Probably
-               // using something like EclipseAnnotationConvertor -
-               // itself not finished ;)
-               throw new RuntimeException(
-                               "not yet implemented - please raise an AJ bug");
-               // return super.getAnnotations();
+               }
+               AnnotationAJ[] annoAJs = new AnnotationAJ[annos.length];
+               for (int i=0;i<annos.length;i++) {
+                       annoAJs[i] = EclipseAnnotationConvertor.convertEclipseAnnotation(annos[i], w, eclipseFactory);
+               }
+               return annoAJs;
        }
 
        public AnnotationAJ getAnnotationOfType(UnresolvedType ofType) {