diff options
author | aclement <aclement> | 2006-05-12 10:41:42 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-05-12 10:41:42 +0000 |
commit | 3ca976f0ce48a49cdcef98b7f72ce2ce23b9ef4d (patch) | |
tree | 85c2c9f8a90b59f2716fb80d9df2e4c360105e57 /tests/bugs152 | |
parent | 5d2b5b8892cc6e714565326b70d7c6a4b7007129 (diff) | |
download | aspectj-3ca976f0ce48a49cdcef98b7f72ce2ce23b9ef4d.tar.gz aspectj-3ca976f0ce48a49cdcef98b7f72ce2ce23b9ef4d.zip |
test and fix for 129704: broken @annotation for methods in generic types
Diffstat (limited to 'tests/bugs152')
-rw-r--r-- | tests/bugs152/pr129704/A.java | 19 |
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 |