aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoracolyer <acolyer>2004-03-15 17:08:34 +0000
committeracolyer <acolyer>2004-03-15 17:08:34 +0000
commit0c2aca0df707e4ac1d8f83aee8eaaa47b982a40d (patch)
tree87f2695bc9dc8abd5c77ddbd7ebc6f1fbbb06252 /tests
parent087842e53c2f60333d1114f8781fa77f619175e8 (diff)
downloadaspectj-0c2aca0df707e4ac1d8f83aee8eaaa47b982a40d.tar.gz
aspectj-0c2aca0df707e4ac1d8f83aee8eaaa47b982a40d.zip
test for Bugzilla Bug 54098
-deprecation not working
Diffstat (limited to 'tests')
-rw-r--r--tests/ajcTests.xml7
-rw-r--r--tests/bugs/deprecated/Deprecated.java6
-rw-r--r--tests/bugs/deprecated/Deprecation.java8
3 files changed, 21 insertions, 0 deletions
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 @@
<run class="Main"/>
</ajc-test>
+ <ajc-test dir="bugs/deprecated" pr="54098"
+ title="-deprecation not working?" >
+ <compile files="Deprecation.java, Deprecated.java" options="-deprecation">
+ <message kind="warning" line="5"/>
+ <message kind="warning" line="6"/>
+ </compile>
+ </ajc-test>
</suite>
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();
+ }
+}