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)