From 0c2aca0df707e4ac1d8f83aee8eaaa47b982a40d Mon Sep 17 00:00:00 2001 From: acolyer Date: Mon, 15 Mar 2004 17:08:34 +0000 Subject: [PATCH] test for Bugzilla Bug 54098 -deprecation not working --- tests/ajcTests.xml | 7 +++++++ tests/bugs/deprecated/Deprecated.java | 6 ++++++ tests/bugs/deprecated/Deprecation.java | 8 ++++++++ 3 files changed, 21 insertions(+) create mode 100644 tests/bugs/deprecated/Deprecated.java create mode 100644 tests/bugs/deprecated/Deprecation.java diff --git a/tests/ajcTests.xml b/tests/ajcTests.xml index 6aa96ee2e..2a5ab1733 100644 --- a/tests/ajcTests.xml +++ b/tests/ajcTests.xml @@ -7287,4 +7287,11 @@ + + + + + + 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(); + } +} -- 2.39.5