From: aclement Date: Tue, 12 Sep 2006 08:46:16 +0000 (+0000) Subject: testcode for 156962: Problems with @Deprecated in method signatures X-Git-Tag: BEFORE_133532~61 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=df98dedb103d8b85aca337aac9436b8c88064680;p=aspectj.git testcode for 156962: Problems with @Deprecated in method signatures --- 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"; +}