aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs164
diff options
context:
space:
mode:
authoraclement <aclement>2009-03-16 18:40:12 +0000
committeraclement <aclement>2009-03-16 18:40:12 +0000
commit1c9611faa2341eb315045ce1ab0df0269a7ab423 (patch)
tree51ea2aa25f1c5fefdb5537e8ff5670388ce24714 /tests/bugs164
parent30fd8c9133fc57c7b6082d460dad2e2d9dad950b (diff)
downloadaspectj-1c9611faa2341eb315045ce1ab0df0269a7ab423.tar.gz
aspectj-1c9611faa2341eb315045ce1ab0df0269a7ab423.zip
268710: test and fix: marker interface within generic aspect
Diffstat (limited to 'tests/bugs164')
-rw-r--r--tests/bugs164/pr268710/ConcreteAspect.aj26
-rw-r--r--tests/bugs164/pr268710/GenericAspect.aj16
2 files changed, 42 insertions, 0 deletions
diff --git a/tests/bugs164/pr268710/ConcreteAspect.aj b/tests/bugs164/pr268710/ConcreteAspect.aj
new file mode 100644
index 000000000..14abbfc93
--- /dev/null
+++ b/tests/bugs164/pr268710/ConcreteAspect.aj
@@ -0,0 +1,26 @@
+/**
+ *
+ */
+package none;
+
+/**
+ * @author Dawid Pytel
+ *
+ */
+public aspect ConcreteAspect extends GenericAspect<String> {
+
+ public static void main(String [] argv) {
+ new C();
+ }
+
+
+ before(SomeInterface v): SomeConstructor(v) {
+ System.out.println("Building an object "+v.getClass());
+ }
+}
+
+class C implements GenericAspect.SomeInterface {
+ public C() {
+ System.out.println("C.init");
+ }
+}
diff --git a/tests/bugs164/pr268710/GenericAspect.aj b/tests/bugs164/pr268710/GenericAspect.aj
new file mode 100644
index 000000000..b4df9fd6e
--- /dev/null
+++ b/tests/bugs164/pr268710/GenericAspect.aj
@@ -0,0 +1,16 @@
+/**
+ *
+ */
+package none;
+
+/**
+ * @author Dawid Pytel
+ *
+ */
+public abstract aspect GenericAspect<T> {
+
+ interface SomeInterface {
+ }
+
+ pointcut SomeConstructor(SomeInterface var) : execution(SomeInterface+.new(..)) && this(var);
+}