diff options
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/jvm/annotations.check | 12 | ||||
-rw-r--r-- | test/files/jvm/annotations.scala | 11 |
2 files changed, 23 insertions, 0 deletions
diff --git a/test/files/jvm/annotations.check b/test/files/jvm/annotations.check index 214c60d06f..0194a7f77d 100644 --- a/test/files/jvm/annotations.check +++ b/test/files/jvm/annotations.check @@ -25,5 +25,17 @@ public Test4$Foo7() @test.SourceAnnotation(mails={bill.gates@bloodsuckers.com}, value=constructor val) private final int Test4$Foo8.n +@test.SourceAnnotation(mails={bill.gates@bloodsuckers.com}, value=http://eppli.com) +private int Test4$Foo9.z + +@test.SourceAnnotation(mails={bill.gates@bloodsuckers.com}, value=http://apple.com) +public int Test4$Foo9.x() + +@test.SourceAnnotation(mails={bill.gates@bloodsuckers.com}, value=http://eppli.com) +public int Test4$Foo9.getZ() + +@test.SourceAnnotation(mails={bill.gates@bloodsuckers.com}, value=http://uppla.com) +public void Test4$Foo9.setY(int) + 0 99 diff --git a/test/files/jvm/annotations.scala b/test/files/jvm/annotations.scala index ec3841b958..902ea87a90 100644 --- a/test/files/jvm/annotations.scala +++ b/test/files/jvm/annotations.scala @@ -93,6 +93,15 @@ object Test4 { def this() = this("") } class Foo8(@SourceAnnotation("constructor val") val n: Int) {} + class Foo9 { + import scala.annotation.target._ + import scala.reflect.BeanProperty + @(SourceAnnotation @getter)("http://apple.com") val x = 0 + @BeanProperty @(SourceAnnotation @beanSetter)("http://uppla.com") var y = 0 + + type myAnn = SourceAnnotation @beanGetter @field + @BeanProperty @myAnn("http://eppli.com") var z = 0 + } def run { import java.lang.annotation.Annotation import java.lang.reflect.AnnotatedElement @@ -121,6 +130,8 @@ object Test4 { classOf[Foo7].getDeclaredConstructors foreach printSourceAnnotations classOf[Foo8].getDeclaredFields foreach printSourceAnnotations classOf[Foo8].getDeclaredMethods foreach printSourceAnnotations + classOf[Foo9].getDeclaredFields foreach printSourceAnnotations + classOf[Foo9].getDeclaredMethods foreach printSourceAnnotations } } |