summaryrefslogtreecommitdiff
path: root/test/files/jvm5/annotations.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-06-26 10:52:27 +0000
committermichelou <michelou@epfl.ch>2007-06-26 10:52:27 +0000
commit66eb76d374b5ff46dc7c9ed1bb4edb8db41b95f8 (patch)
tree7c7f14b9fc65b45813786716478eb18f82b0011d /test/files/jvm5/annotations.scala
parent40a5b9d61caf2093121543b12a79956f728ea474 (diff)
downloadscala-66eb76d374b5ff46dc7c9ed1bb4edb8db41b95f8.tar.gz
scala-66eb76d374b5ff46dc7c9ed1bb4edb8db41b95f8.tar.bz2
scala-66eb76d374b5ff46dc7c9ed1bb4edb8db41b95f8.zip
updated check file
Diffstat (limited to 'test/files/jvm5/annotations.scala')
-rw-r--r--test/files/jvm5/annotations.scala20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/files/jvm5/annotations.scala b/test/files/jvm5/annotations.scala
index c850796e59..9d755a71c0 100644
--- a/test/files/jvm5/annotations.scala
+++ b/test/files/jvm5/annotations.scala
@@ -5,7 +5,7 @@ object Test1 {
}
def run {
val method = classOf[Foo].getMethod("foo", Array())
- method.getExceptionTypes foreach Console.println
+ method.getExceptionTypes foreach println
}
}
@@ -19,7 +19,7 @@ object Test2 {
}
def run {
val method = classOf[Reader].getMethod("read", Array())
- method.getExceptionTypes foreach Console.println
+ method.getExceptionTypes foreach println
}
}
@@ -43,7 +43,7 @@ object Test3 {
def run {
val method = classOf[Foo].getMethod("foo", Array())
val annotation = method.getAnnotation(classOf[Deprecated])
- Console.println(annotation)
+ println(annotation)
}
}
@@ -88,14 +88,14 @@ object Test4 {
// against difference in the JVMs (e.g. Sun's vs IBM's)
def printSourceAnnotation(a: Annotation) {
val ann = a.asInstanceOf[SourceAnnotation]
- Console.println("@test.SourceAnnotation(mails=" + ann.mails.deepMkString("{", ",", "}") +
- ", value=" + ann.value + ")")
+ println("@test.SourceAnnotation(mails=" + ann.mails.deepMkString("{", ",", "}") +
+ ", value=" + ann.value + ")")
}
val anns = target.getAnnotations()
anns foreach printSourceAnnotation
if (anns.length > 0) {
- Console.println(target)
- Console.println
+ println(target)
+ println
}
}
printSourceAnnotations(classOf[Foo1])
@@ -123,14 +123,14 @@ object Test5 {
}
def run {
val count = new Count
- Console.println(count.get)
+ println(count.get)
count.set(99)
- Console.println(count.get)
+ println(count.get)
}
}
object Test {
- def main(args: Array[String]): Unit = {
+ def main(args: Array[String]) {
Test1.run
Test2.run
Test3.run // requires the use of -target:jvm-1.5