From: aclement Date: Mon, 27 Jul 2009 22:00:21 +0000 (+0000) Subject: 282299: generics and declare parents - bridge method unrecognized X-Git-Tag: PRE_J5~31 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1f118ad52bfe5405ca913f210634996f715adc06;p=aspectj.git 282299: generics and declare parents - bridge method unrecognized --- 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 @@ + + + + - +