summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/SerialVersionUID.scala2
-rw-r--r--src/library/scala/throws.scala17
2 files changed, 18 insertions, 1 deletions
diff --git a/src/library/scala/SerialVersionUID.scala b/src/library/scala/SerialVersionUID.scala
index 152e9ba86e..f74d60fc1e 100644
--- a/src/library/scala/SerialVersionUID.scala
+++ b/src/library/scala/SerialVersionUID.scala
@@ -16,4 +16,4 @@ package scala;
* Attribute for specifying the static SerialVersionUID field
* of a serializable class
*/
-case class SerialVersionUID(uid: Long) extends Attribute {}
+class SerialVersionUID(uid: Long) extends Attribute {}
diff --git a/src/library/scala/throws.scala b/src/library/scala/throws.scala
new file mode 100644
index 0000000000..c26559e19c
--- /dev/null
+++ b/src/library/scala/throws.scala
@@ -0,0 +1,17 @@
+/* __ *\
+** ________ ___ / / ___ Scala API **
+** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL **
+** __\ \/ /__/ __ |/ /__/ __ | **
+** /____/\___/_/ |_/____/_/ | | **
+** |/ **
+*/
+
+// $Id$
+
+
+package scala;
+
+/**
+ * Attribute for specifying the exceptions thrown by a method.
+ */
+class throws(clazz: java.lang.Class) extends Attribute;