summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/ajdk/PointcutInGenericClassExample.aj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/java5/generics/ajdk/PointcutInGenericClassExample.aj')
-rw-r--r--tests/java5/generics/ajdk/PointcutInGenericClassExample.aj31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/java5/generics/ajdk/PointcutInGenericClassExample.aj b/tests/java5/generics/ajdk/PointcutInGenericClassExample.aj
new file mode 100644
index 000000000..14740403a
--- /dev/null
+++ b/tests/java5/generics/ajdk/PointcutInGenericClassExample.aj
@@ -0,0 +1,31 @@
+public class PointcutInGenericClassExample<T> {
+
+ public pointcut foo() : execution(* T.*(..));
+
+}
+
+aspect A {
+
+ declare warning : PointcutInGenericClassExample<C>.foo()
+ : "parameterized with C";
+
+ declare warning : PointcutInGenericClassExample<D>.foo()
+ : "parameterized with D";
+
+// declare warning : PointcutInGenericClassExample.foo()
+// : "raw";
+
+
+}
+
+class C {
+
+ void bar() {}
+
+}
+
+class D {
+
+ void goo() {}
+
+} \ No newline at end of file