title: See annotations in Scala reflection
body: <p>I'm trying to see an annotation in Scala reflection and so far no dice.  What am I missing?</p>
  
  <p>My Annotation: (Java)</p>
  
  <pre><code>@Target({ElementType.PARAMETER})  // Also tried ElementType.CONSTRUCTOR
  @Retention(RetentionPolicy.RUNTIME)
  public @interface MongoKey {
      String info = "";
  }
  </code></pre>
  
  <p>And the part that tries to access it using Scala reflection:</p>
  
  <pre><code>case class One( 
  @MongoKey name  : String, 
      stuff : List[String]
  )
  
  val targetObj = One("FOO", List("a","b"))
  val targetType = typeOf[One]
  
  // Given an object (case class) the Type of the case class, and a field name,
  // retrieve the typed field object from the case class.
  def unpack[T](target: T, t: Type, name: String): (Any, Type) = {
     val im = cm.reflect(target)(ClassTag(target.getClass))
     val fieldX = t.declaration(newTermName(name)).asTerm.accessed.asTerm
     val fm = im.reflectField(fieldX)
     (fm.get, fm.symbol.typeSignature)  // return the field's value + Type
  }
  
  val (pval,pvalType) = SeeMe.unpack(targetObj, targetType, "name")
  println(" -&gt; "+pvalType.typeSymbol.annotations)
  </code></pre>
  
  <p>The output is a successful traversal of my case class' field but the annotation List is always empty, even if I decorate a field of the class with my @MongoKey annotation.  Am I looking in the wrong place?</p>