diff options
author | aclement <aclement> | 2009-04-30 20:29:38 +0000 |
---|---|---|
committer | aclement <aclement> | 2009-04-30 20:29:38 +0000 |
commit | 1fe559e2babe14a778e200b4efccd380af5bf16b (patch) | |
tree | 65eb8e902083391a1c1fd651e9f50f58c0cf9866 /tests/bugs165 | |
parent | bd85862d023f3b8a7de01ffe3f5d2e2ef34fcaac (diff) | |
download | aspectj-1fe559e2babe14a778e200b4efccd380af5bf16b.tar.gz aspectj-1fe559e2babe14a778e200b4efccd380af5bf16b.zip |
272825: test and fix: super method call with generic itds
Diffstat (limited to 'tests/bugs165')
-rw-r--r-- | tests/bugs165/pr272825/Concrete.java | 9 | ||||
-rw-r--r-- | tests/bugs165/pr272825/GenericSuper.java | 13 | ||||
-rw-r--r-- | tests/bugs165/pr272825/ITDOfMethod.aj | 8 | ||||
-rw-r--r-- | tests/bugs165/pr272825/Main.java | 9 |
4 files changed, 39 insertions, 0 deletions
diff --git a/tests/bugs165/pr272825/Concrete.java b/tests/bugs165/pr272825/Concrete.java new file mode 100644 index 000000000..5ae8a52b5 --- /dev/null +++ b/tests/bugs165/pr272825/Concrete.java @@ -0,0 +1,9 @@ +public class Concrete extends GenericSuper<Integer>{ + + @Override + public void doSomethingElseWith(Integer t) { + System.out.println("In normal method"); + super.doSomethingElseWith(t); + } + +} diff --git a/tests/bugs165/pr272825/GenericSuper.java b/tests/bugs165/pr272825/GenericSuper.java new file mode 100644 index 000000000..fef8ff23f --- /dev/null +++ b/tests/bugs165/pr272825/GenericSuper.java @@ -0,0 +1,13 @@ +public class GenericSuper<T> { + + public void doSomethingWith(T t) { + System.out.println("with"); + System.out.println(t.toString()); + } + + public void doSomethingElseWith(T t) { + System.out.println("else"); + System.out.println(t); + } + +} diff --git a/tests/bugs165/pr272825/ITDOfMethod.aj b/tests/bugs165/pr272825/ITDOfMethod.aj new file mode 100644 index 000000000..77988aa76 --- /dev/null +++ b/tests/bugs165/pr272825/ITDOfMethod.aj @@ -0,0 +1,8 @@ +public aspect ITDOfMethod { + + public void Concrete.doSomethingWith(Integer i) { + System.out.println("In ITD method"); + super.doSomethingWith(i); + } + +} diff --git a/tests/bugs165/pr272825/Main.java b/tests/bugs165/pr272825/Main.java new file mode 100644 index 000000000..9fb8cf08e --- /dev/null +++ b/tests/bugs165/pr272825/Main.java @@ -0,0 +1,9 @@ +public class Main { + + public static void main(String args[]) { + Concrete c = new Concrete(); + c.doSomethingElseWith(1); + c.doSomethingWith(2); + } + +} |