title: Java custom annotation not visible
body: <p>For my project I am converting classes to json with jackson fasterXml.
  Now I have to change in one place the way the objects are converted so that @JsonIgnore is ignored and the property is serialised.</p>
  
  <p>I found out that I can do this with extending a JacksonAnnotationIntrospector and a custom annotation. The problem is that the custom annotation is only visible if it is defined in the same package/project/osgi bundle as the implementing class while I would like to define it in the service package which exposes the json convertion. If the annotation is in the implementing package, I cannot reference it in the JacksonAnnotationIntrospector and I would need to check on the name of the annotation.</p>
  
  <p>I have two identical annotations with only difference the package:</p>
  
  <pre><code>import java.lang.annotation.ElementType;
  import java.lang.annotation.Retention;
  import java.lang.annotation.RetentionPolicy;
  import java.lang.annotation.Target;
  
  @Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.FIELD})
  @Retention(RetentionPolicy.RUNTIME)
  public @interface AnnotationName {
  
  }
  </code></pre>
  
  <p>When I set both on the implementation, I only see the annotation defined from within the same package/project/osgi bundle as the implementation class.
  Is there a constraint regarding this or has anyone an idea what could be the problem?</p>