aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs152/pr129704/A.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs152/pr129704/A.java')
-rw-r--r--tests/bugs152/pr129704/A.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/bugs152/pr129704/A.java b/tests/bugs152/pr129704/A.java
new file mode 100644
index 000000000..a2e213cca
--- /dev/null
+++ b/tests/bugs152/pr129704/A.java
@@ -0,0 +1,19 @@
+import java.lang.annotation.*;
+
+interface GDO {}
+
+@Retention(RetentionPolicy.RUNTIME) @interface Marker { }
+
+class DCP<T extends GDO> {
+ @Marker void getData(){}
+}
+
+aspect X {
+ before(Marker a): execution(* getData(..)) && @annotation(a) { System.err.println(a); }
+}
+
+public class A {
+ public static void main(String[] args) {
+ new DCP().getData();
+ }
+} \ No newline at end of file