blob: be3eb5b932ebdd892d6ab404f835c0a092c73159 (
plain) (
tree)
|
|
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
class Bean {
@JavaAnnotationWithNestedEnum(JavaAnnotationWithNestedEnum.Value.VALUE)
def value = 1
}
object Test extends App {
println(cm.staticClass("Bean").isCaseClass)
println(typeOf[Bean].declaration(newTermName("value")).annotations)
}
|