aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/deprecated/Deprecated.java6
-rw-r--r--tests/bugs/deprecated/Deprecation.java8
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/bugs/deprecated/Deprecated.java b/tests/bugs/deprecated/Deprecated.java
new file mode 100644
index 000000000..2cd24f896
--- /dev/null
+++ b/tests/bugs/deprecated/Deprecated.java
@@ -0,0 +1,6 @@
+// bug 54098
+/** @deprecated */
+public class Deprecated {
+ /** @deprecated */
+ void bar() {}
+} \ No newline at end of file
diff --git a/tests/bugs/deprecated/Deprecation.java b/tests/bugs/deprecated/Deprecation.java
new file mode 100644
index 000000000..66fb11226
--- /dev/null
+++ b/tests/bugs/deprecated/Deprecation.java
@@ -0,0 +1,8 @@
+// bug 54098
+
+public class Deprecation {
+ public static void main(String[] args) {
+ Deprecated dep = new Deprecated();
+ dep.bar();
+ }
+}