aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1923
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs1923')
-rw-r--r--tests/bugs1923/gh322/SomeAnnotation.java5
-rw-r--r--tests/bugs1923/gh322/TheAspect.java11
-rw-r--r--tests/bugs1923/gh322/TheClass.java5
-rw-r--r--tests/bugs1923/gh322/TheInterface.java3
4 files changed, 24 insertions, 0 deletions
diff --git a/tests/bugs1923/gh322/SomeAnnotation.java b/tests/bugs1923/gh322/SomeAnnotation.java
new file mode 100644
index 000000000..3d472d3f9
--- /dev/null
+++ b/tests/bugs1923/gh322/SomeAnnotation.java
@@ -0,0 +1,5 @@
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+public @interface SomeAnnotation {}
+
diff --git a/tests/bugs1923/gh322/TheAspect.java b/tests/bugs1923/gh322/TheAspect.java
new file mode 100644
index 000000000..41b33119a
--- /dev/null
+++ b/tests/bugs1923/gh322/TheAspect.java
@@ -0,0 +1,11 @@
+import org.aspectj.lang.ProceedingJoinPoint;
+import org.aspectj.lang.annotation.Around;
+import org.aspectj.lang.annotation.Aspect;
+
+@Aspect
+public class TheAspect {
+ @Around("execution(* *(@SomeAnnotation (*), ..))")
+ public Object aroundContext(ProceedingJoinPoint pjp) throws Throwable {
+ return pjp.proceed();
+ }
+}
diff --git a/tests/bugs1923/gh322/TheClass.java b/tests/bugs1923/gh322/TheClass.java
new file mode 100644
index 000000000..590c4f7bf
--- /dev/null
+++ b/tests/bugs1923/gh322/TheClass.java
@@ -0,0 +1,5 @@
+public class TheClass implements TheInterface {
+ @Override
+ public void method(int param) {
+ }
+}
diff --git a/tests/bugs1923/gh322/TheInterface.java b/tests/bugs1923/gh322/TheInterface.java
new file mode 100644
index 000000000..358f9037b
--- /dev/null
+++ b/tests/bugs1923/gh322/TheInterface.java
@@ -0,0 +1,3 @@
+public interface TheInterface {
+ void method(@Deprecated int param);
+}