diff options
author | Paul Phillips <paulp@improving.org> | 2012-12-19 11:21:05 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-12-19 11:21:05 -0800 |
commit | f274490de15a148452958bf897dc40f897069205 (patch) | |
tree | 2e8c2f274e483e774251a15f1f35954092b41bfb /test/files/run | |
parent | 8d2505da041b902b4c4304ca783d5a6b8b9b6c52 (diff) | |
parent | 0429f0fd9224499cd8b606490d04b1a8dcffbca8 (diff) | |
download | scala-f274490de15a148452958bf897dc40f897069205.tar.gz scala-f274490de15a148452958bf897dc40f897069205.tar.bz2 scala-f274490de15a148452958bf897dc40f897069205.zip |
Merge pull request #1727 from scalamacros/ticket/6548
SI-6548 reflection now correctly enters jinners
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t6548.check | 2 | ||||
-rw-r--r-- | test/files/run/t6548.scala | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/test/files/run/t6548.check b/test/files/run/t6548.check new file mode 100644 index 0000000000..e82cae110a --- /dev/null +++ b/test/files/run/t6548.check @@ -0,0 +1,2 @@ +false +List(JavaAnnotationWithNestedEnum(value = VALUE)) diff --git a/test/files/run/t6548.scala b/test/files/run/t6548.scala new file mode 100644 index 0000000000..be3eb5b932 --- /dev/null +++ b/test/files/run/t6548.scala @@ -0,0 +1,12 @@ +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) +} |