From d4486b9e2e782575c201ba1baa0288371c7e9356 Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Wed, 10 Feb 2010 09:03:13 +0000 Subject: close #3003. no review, already done by dragos. --- test/files/jvm/t3003/Annot.java | 4 ++++ test/files/jvm/t3003/Test_1.scala | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 test/files/jvm/t3003/Annot.java create mode 100644 test/files/jvm/t3003/Test_1.scala (limited to 'test/files/jvm/t3003') diff --git a/test/files/jvm/t3003/Annot.java b/test/files/jvm/t3003/Annot.java new file mode 100644 index 0000000000..1d5f206fd7 --- /dev/null +++ b/test/files/jvm/t3003/Annot.java @@ -0,0 +1,4 @@ +@java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) +public @interface Annot { + Class optionType(); +} diff --git a/test/files/jvm/t3003/Test_1.scala b/test/files/jvm/t3003/Test_1.scala new file mode 100644 index 0000000000..ec7f220c94 --- /dev/null +++ b/test/files/jvm/t3003/Test_1.scala @@ -0,0 +1,8 @@ +class C { + @Annot(optionType=classOf[String]) val k = 0 +} +object Test { + def main(args: Array[String]) { + println(classOf[C].getDeclaredFields.toList.sortBy(f => f.getName).map(f => f.getAnnotations.toList)) + } +} -- cgit v1.2.3