aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2008-06-04 17:21:13 +0000
committeraclement <aclement>2008-06-04 17:21:13 +0000
commit52e8c2b37de4e4f18efe303b0e49e471ea75077e (patch)
treee382c6d63ff07dc823b6343ad8fc02a6eb101035
parent30b591e1793994bbbe5e3978d29fc317dd432da1 (diff)
downloadaspectj-52e8c2b37de4e4f18efe303b0e49e471ea75077e.tar.gz
aspectj-52e8c2b37de4e4f18efe303b0e49e471ea75077e.zip
235597: test and fix: annotations on generic methods
-rw-r--r--weaver/src/org/aspectj/weaver/ResolvedMemberImpl.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/weaver/src/org/aspectj/weaver/ResolvedMemberImpl.java b/weaver/src/org/aspectj/weaver/ResolvedMemberImpl.java
index 7d3847d58..d40f00053 100644
--- a/weaver/src/org/aspectj/weaver/ResolvedMemberImpl.java
+++ b/weaver/src/org/aspectj/weaver/ResolvedMemberImpl.java
@@ -299,6 +299,12 @@ public class ResolvedMemberImpl extends MemberImpl implements IHasPosition, Anno
// that doesn't mean it is an error to call this method.
// Normally the weaver will be working with subtypes of
// this type - BcelField/BcelMethod
+ if (backingGenericMember != null) {
+ if (annotationTypes!=null) {
+ throw new BCException("Unexpectedly found a backing generic member and a local set of annotations");
+ }
+ return backingGenericMember.getAnnotationTypes();
+ }
if (annotationTypes == null) return null;
return (ResolvedType[])annotationTypes.toArray(new ResolvedType[]{});
}