summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@gmail.com>2016-07-06 21:00:43 +0200
committerLukas Rytz <lukas.rytz@gmail.com>2016-07-20 11:05:43 +0200
commitf510aa55cfd537788720f9bb89409f0373d8c471 (patch)
treee1a684ae52f4227e442a9329a24572401f2f7c24
parent6612ba010b0e70c53550d1e47141c8dc89a55f23 (diff)
downloadscala-f510aa55cfd537788720f9bb89409f0373d8c471.tar.gz
scala-f510aa55cfd537788720f9bb89409f0373d8c471.tar.bz2
scala-f510aa55cfd537788720f9bb89409f0373d8c471.zip
Deprecate scala.remote
-rw-r--r--src/library/scala/remote.scala1
-rw-r--r--test/files/jvm/annotations.check3
-rw-r--r--test/files/jvm/annotations.flags1
3 files changed, 5 insertions, 0 deletions
diff --git a/src/library/scala/remote.scala b/src/library/scala/remote.scala
index 4b16651af9..7265a15194 100644
--- a/src/library/scala/remote.scala
+++ b/src/library/scala/remote.scala
@@ -24,4 +24,5 @@ package scala
* }
* }}}
*/
+@deprecated("extend java.rmi.Remote instead and add @throws[java.rmi.RemoteException] to public methods", "2.12.0")
class remote extends scala.annotation.StaticAnnotation {}
diff --git a/test/files/jvm/annotations.check b/test/files/jvm/annotations.check
index a8dc5ecdd1..43f85ca199 100644
--- a/test/files/jvm/annotations.check
+++ b/test/files/jvm/annotations.check
@@ -1,3 +1,6 @@
+annotations.scala:7: warning: class remote in package scala is deprecated (since 2.12.0): extend java.rmi.Remote instead and add @throws[java.rmi.RemoteException] to public methods
+ def foo: Unit = ()
+ ^
class java.rmi.RemoteException
class java.io.IOException
@java.lang.Deprecated()
diff --git a/test/files/jvm/annotations.flags b/test/files/jvm/annotations.flags
new file mode 100644
index 0000000000..c36e713ab8
--- /dev/null
+++ b/test/files/jvm/annotations.flags
@@ -0,0 +1 @@
+-deprecation \ No newline at end of file