diff options
author | aclement <aclement> | 2005-05-12 13:00:07 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-05-12 13:00:07 +0000 |
commit | f9eebd48f6070a8254b38630d6d76da8c0aee80e (patch) | |
tree | 8dafe680191932a3da890df8aebf9156c2fec4e9 /weaver | |
parent | 9be6f2d8567da5ee7628049a452f989b1410402c (diff) | |
download | aspectj-f9eebd48f6070a8254b38630d6d76da8c0aee80e.tar.gz aspectj-f9eebd48f6070a8254b38630d6d76da8c0aee80e.zip |
Fix and tests for pr84312: runtime retention checking. From Andrew Huff.
Diffstat (limited to 'weaver')
-rw-r--r-- | weaver/src/org/aspectj/weaver/patterns/BindingAnnotationTypePattern.java | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/weaver/src/org/aspectj/weaver/patterns/BindingAnnotationTypePattern.java b/weaver/src/org/aspectj/weaver/patterns/BindingAnnotationTypePattern.java index 3d8ad311f..d32f9184b 100644 --- a/weaver/src/org/aspectj/weaver/patterns/BindingAnnotationTypePattern.java +++ b/weaver/src/org/aspectj/weaver/patterns/BindingAnnotationTypePattern.java @@ -50,22 +50,13 @@ public class BindingAnnotationTypePattern extends ExactAnnotationTypePattern imp world.getMessageHandler().handleMessage(m); resolved = false; } - if (!annotationType.hasAnnotation(TypeX.AT_RETENTION)) { + if (!annotationType.isAnnotationWithRuntimeRetention(world)) { // default is class visibility // default is class visibility IMessage m = MessageUtil.error( WeaverMessages.format(WeaverMessages.BINDING_NON_RUNTIME_RETENTION_ANNOTATION,annotationType.getName()), getSourceLocation()); world.getMessageHandler().handleMessage(m); resolved = false; - } else { - // Get the retention policy annotation, and check the value is RetentionPolicy.RUNTIME; - // FIXME asc invention required, implement this ! -// if (!annotationType.hasRuntimeRetention()) { -// ResolvedTypeX[] allAs = annotationType.getAnnotationTypes(); -// for (int i = 0; i < allAs.length; i++) { -// ResolvedTypeX ann = allAs[i]; -// if () -// } } } |