]> source.dussan.org Git - aspectj.git/commitdiff
test for Bugzilla Bug 54098
authoracolyer <acolyer>
Mon, 15 Mar 2004 17:08:34 +0000 (17:08 +0000)
committeracolyer <acolyer>
Mon, 15 Mar 2004 17:08:34 +0000 (17:08 +0000)
  -deprecation not working

tests/ajcTests.xml
tests/bugs/deprecated/Deprecated.java [new file with mode: 0644]
tests/bugs/deprecated/Deprecation.java [new file with mode: 0644]

index 6aa96ee2e3f79f0dea173dccce178c81e6c5a033..2a5ab1733e7151fa5a355fb6abf31a77569330db 100644 (file)
         <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 (file)
index 0000000..2cd24f8
--- /dev/null
@@ -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 (file)
index 0000000..66fb112
--- /dev/null
@@ -0,0 +1,8 @@
+// bug 54098
+
+public class Deprecation {
+    public static void main(String[] args) {
+        Deprecated dep = new Deprecated();
+        dep.bar();
+    }
+}