commit | ccabd284ecb4f55cd4cf1bb152790a57e7e28664 | [log] [tgz] |
---|---|---|
author | Göktürk Gezer <gokturk@apache.org> | Mon Feb 04 18:41:30 2013 +0000 |
committer | Göktürk Gezer <gokturk@apache.org> | Mon Feb 04 18:41:30 2013 +0000 |
tree | cd12447c424e7a0a3a3c16edcf5d6210a22428c2 | |
parent | 19f12388d0034311b953d020a855b1c91a9a2a76 [diff] |
Fix for FELIX-3889. git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1442296 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/manipulator/manipulator/src/main/java/org/apache/felix/ipojo/manipulator/metadata/annotation/ClassMetadataCollector.java b/ipojo/manipulator/manipulator/src/main/java/org/apache/felix/ipojo/manipulator/metadata/annotation/ClassMetadataCollector.java index 6b7904c..f129ef9 100644 --- a/ipojo/manipulator/manipulator/src/main/java/org/apache/felix/ipojo/manipulator/metadata/annotation/ClassMetadataCollector.java +++ b/ipojo/manipulator/manipulator/src/main/java/org/apache/felix/ipojo/manipulator/metadata/annotation/ClassMetadataCollector.java
@@ -97,6 +97,15 @@ */ public AnnotationVisitor visitAnnotation(String desc, boolean visible) { + /* + * Visible annotations are mostly destined to be read by reflection + * at runtime. We retain runtime visible annotations on component + * as they are and left them out in meta-data calculation. + */ + if(visible){ + return null; + } + // Return the visitor to be executed (may be null) return registry.selection(workbench) .type(node)