title: Producer for dynamic instance not getting annotation
body: <p>I am having a producer class that looks like this:</p>
  
  <pre><code>public class HostConfigPropertyProducer {
      @Any
      @Inject
      Instance&lt;String&gt; baseUriInstance;
  
      @Produces
      @HostConfigProperty
      String produce(InjectionPoint ip) {
          HostConfigProperty property =  ip.getAnnotated().getAnnotation(HostConfigProperty.class);
          Instance&lt;String&gt; baseUriCandidate = baseUriInstance.select(new StringPropertyLiteral(property.key()));
          return baseUriCandidate.get();
      }
  }
  </code></pre>
  
  <p>The StringPropertyLiteral is looking like this:</p>
  
  <pre><code>public final class StringPropertyLiteral extends AnnotationLiteral&lt;StringProperty&gt; implements StringProperty {
      private final String keyValue;
  
      public StringPropertyLiteral(String key) {
          keyValue = key;
      }
  
      @Override
      public String key() {
          return keyValue;
      }
  
      @Override
      public String defaultValue() {
          return "";
      }
  }
  </code></pre>
  
  <p>Now there is also a <code>@Produces</code> for <code>StringProperty</code> that I am trying to invoke using my <code>select(new StringP...)</code>. It correctly goes into that producer but the problem is that it is not able to get a <code>StringProperty</code> annotation in that code.</p>
  
  <p>More specifically that means that in the following code it gets null:</p>
  
  <pre><code>@Produces
  @StringProperty
  public String stringProperty(InjectionPoint ip) {
      StringProperty property = ip.getAnnotated().getAnnotation(StringProperty.class);
      return property.defaultValue();
  }
  </code></pre>
  
  <p>The <code>getAnnotation</code> is returning <code>null</code> and inspecting it in the debugger shows that it only has 2 annotations, the <code>Any</code> and the <code>Inject</code> annotation. Also in the qualifiers of the injection point I can find only one qualifier, thats <code>Any</code></p>
  
  <p>Why is my annotation literal not being passed to the producer? I have used a similar pattern in another context but there the target for <code>select</code> was a type, that was not obtained by a producer and it worked.</p>