diff options
author | Paul Phillips <paulp@improving.org> | 2011-10-01 05:16:22 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-10-01 05:16:22 +0000 |
commit | 55109d0d253c7e89660f1b61d17408648c0c53a4 (patch) | |
tree | db44f381515b79a575562cb2eacaaa8b7b590b7d /test/files/jvm/annotations.scala | |
parent | ff5619e1f0d1653642e93e2c6a051c88231c95fb (diff) | |
download | scala-55109d0d253c7e89660f1b61d17408648c0c53a4.tar.gz scala-55109d0d253c7e89660f1b61d17408648c0c53a4.tar.bz2 scala-55109d0d253c7e89660f1b61d17408648c0c53a4.zip |
Shuffling classes around.
Old Man Reflection is coming home and he's not going to like finding
out a bunch of beans have moved into his reflecting room. We had better
evict those guys before he blows his stack.
scala.reflect.*Bean* --> scala.beans.*
scala.beans, that's kind of a fancy package name for some beans. I
figure it's time to start fishing or cutting bait on this kind of thing.
I don't even know what beans are, but if we're going to have them in the
mainline, the least surprising place to find them is scala.beans. If we
don't want to put them in scala.beans for whatever reason, then I say
they don't belong in trunk at all.
Bonus round:
scala.annotation.target --> scala.beans.meta
I don't know if there is any more unfortunate name for a package
possible than "target". Maybe ".svn" or ".git" if you could have dots
in package names. Package CVS wouldn't hit too hard these days. Package
lib_managed? I'll try to come up with something. In any case this golden
opportunity could not be squandered.
There is a new starr included, because GenJVM contains all kinds of
shooting-from-the-hip Bean-related name hardcoding. (Yes, still. I ran
out of stones. So a few birds escape with their lives... this time.)
Diffstat (limited to 'test/files/jvm/annotations.scala')
-rw-r--r-- | test/files/jvm/annotations.scala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/files/jvm/annotations.scala b/test/files/jvm/annotations.scala index 740a74226e..a0b087a8db 100644 --- a/test/files/jvm/annotations.scala +++ b/test/files/jvm/annotations.scala @@ -94,8 +94,8 @@ object Test4 { } class Foo8(@SourceAnnotation("constructor val") val n: Int) {} class Foo9 { - import scala.annotation.target._ - import scala.reflect.BeanProperty + import scala.beans.meta._ + import scala.beans.BeanProperty @(SourceAnnotation @getter)("http://apple.com") val x = 0 @BeanProperty @(SourceAnnotation @beanSetter)("http://uppla.com") var y = 0 @@ -103,8 +103,8 @@ object Test4 { @BeanProperty @myAnn("http://eppli.com") var z = 0 } class Foo10(@SourceAnnotation("on param 1") val name: String) - class Foo11(@(SourceAnnotation @scala.annotation.target.field)("on param 2") val name: String) - class Foo12(@(SourceAnnotation @scala.annotation.target.setter)("on param 3") var name: String) + class Foo11(@(SourceAnnotation @scala.beans.meta.field)("on param 2") val name: String) + class Foo12(@(SourceAnnotation @scala.beans.meta.setter)("on param 3") var name: String) def run { import java.lang.annotation.Annotation import java.lang.reflect.AnnotatedElement @@ -157,7 +157,7 @@ object Test4 { } object Test5 { - import scala.reflect.BeanProperty + import scala.beans.BeanProperty import java.lang.Integer class Count { @@ -182,7 +182,7 @@ object Test5 { } object Test6 { - import scala.reflect.BeanProperty + import scala.beans.BeanProperty import scala.reflect.BooleanBeanProperty class C(@BeanProperty var text: String) class D(@BooleanBeanProperty var prop: Boolean) { |