summaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoraclement <aclement>2005-05-12 13:00:07 +0000
committeraclement <aclement>2005-05-12 13:00:07 +0000
commitf9eebd48f6070a8254b38630d6d76da8c0aee80e (patch)
tree8dafe680191932a3da890df8aebf9156c2fec4e9 /org.aspectj.ajdt.core
parent9be6f2d8567da5ee7628049a452f989b1410402c (diff)
downloadaspectj-f9eebd48f6070a8254b38630d6d76da8c0aee80e.tar.gz
aspectj-f9eebd48f6070a8254b38630d6d76da8c0aee80e.zip
Fix and tests for pr84312: runtime retention checking. From Andrew Huff.
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java
index 826e585f2..2b9c61fbe 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java
@@ -280,7 +280,7 @@ public class EclipseSourceType extends ResolvedTypeX.ConcreteName {
if (!isAnnotation()) {
return false;
} else {
- return (binding.getAnnotationTagBits() & TagBits.AnnotationRuntimeRetention)!=0;
+ return (binding.getAnnotationTagBits() & TagBits.AnnotationRetentionMASK) == TagBits.AnnotationRuntimeRetention;
}
}