summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@gmail.com>2014-05-13 21:38:03 +0200
committerLukas Rytz <lukas.rytz@gmail.com>2014-05-13 21:43:16 +0200
commit8750592b5748be2be2e57912d13b349b2c1db103 (patch)
tree40bf6f751954398b8f20698396828900ca498aee /test/files
parent22dc67b8001f339e11a454c20c2dc48dfcb4aa55 (diff)
downloadscala-8750592b5748be2be2e57912d13b349b2c1db103.tar.gz
scala-8750592b5748be2be2e57912d13b349b2c1db103.tar.bz2
scala-8750592b5748be2be2e57912d13b349b2c1db103.zip
Deprecation of @BeanInfo
Diffstat (limited to 'test/files')
-rw-r--r--test/files/neg/beanInfoDeprecation.check6
-rw-r--r--test/files/neg/beanInfoDeprecation.flags1
-rw-r--r--test/files/neg/beanInfoDeprecation.scala2
3 files changed, 9 insertions, 0 deletions
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