summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/bugs153/pr156962/LiftDeprecation.aj3
-rw-r--r--tests/bugs153/pr156962/Sample.java3
-rw-r--r--tests/bugs153/pr156962/WarnDeprecatedMethod.aj4
3 files changed, 10 insertions, 0 deletions
diff --git a/tests/bugs153/pr156962/LiftDeprecation.aj b/tests/bugs153/pr156962/LiftDeprecation.aj
new file mode 100644
index 000000000..d9825588c
--- /dev/null
+++ b/tests/bugs153/pr156962/LiftDeprecation.aj
@@ -0,0 +1,3 @@
+public aspect LiftDeprecation {
+ declare @type: hasmethod(@Deprecated * *(..)): @Deprecated;
+}
diff --git a/tests/bugs153/pr156962/Sample.java b/tests/bugs153/pr156962/Sample.java
new file mode 100644
index 000000000..58545fab4
--- /dev/null
+++ b/tests/bugs153/pr156962/Sample.java
@@ -0,0 +1,3 @@
+public class Sample {
+ @Deprecated public void sample() {}
+}
diff --git a/tests/bugs153/pr156962/WarnDeprecatedMethod.aj b/tests/bugs153/pr156962/WarnDeprecatedMethod.aj
new file mode 100644
index 000000000..54663d849
--- /dev/null
+++ b/tests/bugs153/pr156962/WarnDeprecatedMethod.aj
@@ -0,0 +1,4 @@
+public aspect WarnDeprecatedMethod {
+ public pointcut execDepr(): execution(@Deprecated * *(..));
+ declare warning: execDepr(): "deprecated method";
+}