diff options
author | aclement <aclement> | 2008-02-19 22:41:26 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-02-19 22:41:26 +0000 |
commit | a22ad46047e2ddfa124c08621dd4bf567c8f23f1 (patch) | |
tree | 8379d48f6dfa39f93531aad99b404e6c7a3204d4 /weaver5 | |
parent | b91e3abfe2d9fcafac1eabaefab0f1c3ba8ae55a (diff) | |
download | aspectj-a22ad46047e2ddfa124c08621dd4bf567c8f23f1.tar.gz aspectj-a22ad46047e2ddfa124c08621dd4bf567c8f23f1.zip |
debug diagnostics for spring bug http://jira.springframework.org/browse/SPR-4390
Diffstat (limited to 'weaver5')
-rw-r--r-- | weaver5/java5-src/org/aspectj/weaver/reflect/Java15AnnotationFinder.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/weaver5/java5-src/org/aspectj/weaver/reflect/Java15AnnotationFinder.java b/weaver5/java5-src/org/aspectj/weaver/reflect/Java15AnnotationFinder.java index e87a89c43..cecf1c461 100644 --- a/weaver5/java5-src/org/aspectj/weaver/reflect/Java15AnnotationFinder.java +++ b/weaver5/java5-src/org/aspectj/weaver/reflect/Java15AnnotationFinder.java @@ -106,7 +106,11 @@ public class Java15AnnotationFinder implements AnnotationFinder, ArgNameFinder { org.aspectj.apache.bcel.classfile.annotation.Annotation[] anns = new org.aspectj.apache.bcel.classfile.annotation.Annotation[0]; if (onMember instanceof Method) { org.aspectj.apache.bcel.classfile.Method bcelMethod = jc.getMethod((Method)onMember); - anns = bcelMethod.getAnnotations(); + if (bcelMethod == null) { + System.err.println("Unexpected problem in Java15AnnotationFinder: cannot retrieve annotations on method '"+onMember.getName()+"' in class '"+jc.getClassName()+"'"); + } else { + anns = bcelMethod.getAnnotations(); + } } else if (onMember instanceof Constructor) { org.aspectj.apache.bcel.classfile.Method bcelCons = jc.getMethod((Constructor)onMember); anns = bcelCons.getAnnotations(); |