aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2006-09-12 08:46:16 +0000
committeraclement <aclement>2006-09-12 08:46:16 +0000
commitdf98dedb103d8b85aca337aac9436b8c88064680 (patch)
tree50a46408c067c2dd824ed6ef8b616e9673dfdc53
parent7619ce1c2b03accdd1fb13db6045026a0e76a197 (diff)
downloadaspectj-df98dedb103d8b85aca337aac9436b8c88064680.tar.gz
aspectj-df98dedb103d8b85aca337aac9436b8c88064680.zip
testcode for 156962: Problems with @Deprecated in method signatures
-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";
+}