From 1f118ad52bfe5405ca913f210634996f715adc06 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 27 Jul 2009 22:00:21 +0000 Subject: [PATCH] 282299: generics and declare parents - bridge method unrecognized --- tests/bugs166/pr282299/Code.java | 28 +++++++++++++++++++ .../systemtest/ajc166/Ajc166Tests.java | 4 +++ .../org/aspectj/systemtest/ajc166/ajc166.xml | 6 +++- 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 tests/bugs166/pr282299/Code.java diff --git a/tests/bugs166/pr282299/Code.java b/tests/bugs166/pr282299/Code.java new file mode 100644 index 000000000..850624856 --- /dev/null +++ b/tests/bugs166/pr282299/Code.java @@ -0,0 +1,28 @@ +public class Code { +} + +interface Accessor +{ + V get(String key); + + void set(String key, V value); +} + +class AccessorImpl implements Accessor { + + public V get(String key) { + System.out.println("Calling get(..)"); + return null; + } + + public void set(String key, V value) { + System.out.println("Calling set(..)"); + } + +} + +class Target {} + +aspect TargetEnhancer { + declare parents: Target extends AccessorImpl; +} diff --git a/tests/src/org/aspectj/systemtest/ajc166/Ajc166Tests.java b/tests/src/org/aspectj/systemtest/ajc166/Ajc166Tests.java index 6019d7a21..8e5f0bbf9 100644 --- a/tests/src/org/aspectj/systemtest/ajc166/Ajc166Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc166/Ajc166Tests.java @@ -23,6 +23,10 @@ public class Ajc166Tests extends org.aspectj.testing.XMLBasedAjcTestCase { // runTest("generics bridge"); // } + public void testGenericsDecp_pr282299() { + runTest("generics and decp"); + } + public void testGenericSigProblem_pr284297() { runTest("generic signature problem"); } diff --git a/tests/src/org/aspectj/systemtest/ajc166/ajc166.xml b/tests/src/org/aspectj/systemtest/ajc166/ajc166.xml index 6ccf9262e..27628adbb 100644 --- a/tests/src/org/aspectj/systemtest/ajc166/ajc166.xml +++ b/tests/src/org/aspectj/systemtest/ajc166/ajc166.xml @@ -2,10 +2,14 @@ + + + + - + -- 2.39.5