summaryrefslogtreecommitdiff
path: root/test/files/jvm5/attributes.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2007-02-15 17:28:32 +0000
committerMartin Odersky <odersky@gmail.com>2007-02-15 17:28:32 +0000
commit142560739a368d569e170f581f7f730cb07bf79d (patch)
treea36928e585abd3547d1732872541e34132c5b908 /test/files/jvm5/attributes.scala
parentd1cc9d42c9363eb55d0487425f4ac672cfdf6a0a (diff)
downloadscala-142560739a368d569e170f581f7f730cb07bf79d.tar.gz
scala-142560739a368d569e170f581f7f730cb07bf79d.tar.bz2
scala-142560739a368d569e170f581f7f730cb07bf79d.zip
fixed tests
Diffstat (limited to 'test/files/jvm5/attributes.scala')
-rw-r--r--test/files/jvm5/attributes.scala11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/files/jvm5/attributes.scala b/test/files/jvm5/attributes.scala
index 1e38db22ce..59e5e4facd 100644
--- a/test/files/jvm5/attributes.scala
+++ b/test/files/jvm5/attributes.scala
@@ -2,7 +2,7 @@ import java.lang.Deprecated
object Test1 {
class Foo {
- [remote]
+ @remote
def foo: Unit = ()
}
def run: Unit = {
@@ -15,7 +15,8 @@ object Test2 {
import java.io.{BufferedReader,FileReader, IOException}
class Reader(fname: String) {
private val in = new BufferedReader(new FileReader(fname))
- [throws(classOf[IOException])]
+
+ @throws(classOf[IOException])
def read() = in.read()
}
def run: Unit = {
@@ -37,7 +38,7 @@ public class Main {
*/
object Test3 {
class Foo {
- [Deprecated]
+ @Deprecated
def foo: Unit = ()
}
def run: Unit = {
@@ -67,9 +68,9 @@ public class Main {
*/
object Test4 {
import java.lang.annotation._
- [Retention(RetentionPolicy.RUNTIME)]
+ @Retention(RetentionPolicy.RUNTIME)
class Source(url: String, mail: String) extends scala.Annotation
- [Source("http://scala.epfl.ch", "scala@lists.epfl.ch")]
+ @Source("http://scala.epfl.ch", "scala@lists.epfl.ch")
class Foo
def run: Unit = {
val clazz = classOf[Foo]