diff options
author | Lukas Rytz <lukas.rytz@gmail.com> | 2014-05-13 21:38:03 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@gmail.com> | 2014-05-13 21:43:16 +0200 |
commit | 8750592b5748be2be2e57912d13b349b2c1db103 (patch) | |
tree | 40bf6f751954398b8f20698396828900ca498aee | |
parent | 22dc67b8001f339e11a454c20c2dc48dfcb4aa55 (diff) | |
download | scala-8750592b5748be2be2e57912d13b349b2c1db103.tar.gz scala-8750592b5748be2be2e57912d13b349b2c1db103.tar.bz2 scala-8750592b5748be2be2e57912d13b349b2c1db103.zip |
Deprecation of @BeanInfo
-rw-r--r-- | src/library/scala/beans/BeanInfo.scala | 1 | ||||
-rw-r--r-- | test/files/neg/beanInfoDeprecation.check | 6 | ||||
-rw-r--r-- | test/files/neg/beanInfoDeprecation.flags | 1 | ||||
-rw-r--r-- | test/files/neg/beanInfoDeprecation.scala | 2 |
4 files changed, 10 insertions, 0 deletions
diff --git a/src/library/scala/beans/BeanInfo.scala b/src/library/scala/beans/BeanInfo.scala index 799e93e71a..d7f0a1618b 100644 --- a/src/library/scala/beans/BeanInfo.scala +++ b/src/library/scala/beans/BeanInfo.scala @@ -17,4 +17,5 @@ package scala.beans * * @author Ross Judson (rjudson@managedobjects.com) */ +@deprecated(message = "the generation of BeanInfo classes is no longer supported", since = "2.12.0") class BeanInfo extends scala.annotation.Annotation diff --git a/test/files/neg/beanInfoDeprecation.check b/test/files/neg/beanInfoDeprecation.check new file mode 100644 index 0000000000..788b277818 --- /dev/null +++ b/test/files/neg/beanInfoDeprecation.check @@ -0,0 +1,6 @@ +beanInfoDeprecation.scala:2: warning: class BeanInfo in package beans is deprecated: the generation of BeanInfo classes is no longer supported +class C + ^ +error: No warnings can be incurred under -Xfatal-warnings. +one warning found +one error found diff --git a/test/files/neg/beanInfoDeprecation.flags b/test/files/neg/beanInfoDeprecation.flags new file mode 100644 index 0000000000..c6bfaf1f64 --- /dev/null +++ b/test/files/neg/beanInfoDeprecation.flags @@ -0,0 +1 @@ +-deprecation -Xfatal-warnings diff --git a/test/files/neg/beanInfoDeprecation.scala b/test/files/neg/beanInfoDeprecation.scala new file mode 100644 index 0000000000..c7e3a86202 --- /dev/null +++ b/test/files/neg/beanInfoDeprecation.scala @@ -0,0 +1,2 @@ +@scala.beans.BeanInfo +class C |