blob: 6e4f6ba92a1d880af27bea50bb23cabb36a3b010 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
class Bean {
@JavaAnnotationWithNestedEnum_1(JavaAnnotationWithNestedEnum_1.Value.VALUE)
def value = 1
}
object Test extends App {
println(cm.staticClass("Bean").isCaseClass)
println(typeOf[Bean].declaration(newTermName("value")).annotations)
}
|