valuesForAnnotation returns JTypeSymbol

I read this post about how to get annotation value, but when I try to get the JUnit @RunWith(SpringRunner.class), the returned value for valuesForAnnotation is JTypeSymbol, how can i get the SpringRunner string with JTypeSymbol ?

Hi @dassio,

You are almost there it seems. Once you cast the value of the annotation as a JTypeSymbol, you can access its type through the type() method.

Hope this helps,