From df98dedb103d8b85aca337aac9436b8c88064680 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 12 Sep 2006 08:46:16 +0000 Subject: [PATCH] testcode for 156962: Problems with @Deprecated in method signatures --- tests/bugs153/pr156962/LiftDeprecation.aj | 3 +++ tests/bugs153/pr156962/Sample.java | 3 +++ tests/bugs153/pr156962/WarnDeprecatedMethod.aj | 4 ++++ 3 files changed, 10 insertions(+) create mode 100644 tests/bugs153/pr156962/LiftDeprecation.aj create mode 100644 tests/bugs153/pr156962/Sample.java create mode 100644 tests/bugs153/pr156962/WarnDeprecatedMethod.aj 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"; +} -- 2.39.5