blob: 7200259d368541e44256c3dc51421663193247aa (
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(TermName("value")).annotations)
}
|