aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2009-07-27 22:00:21 +0000
committeraclement <aclement>2009-07-27 22:00:21 +0000
commit1f118ad52bfe5405ca913f210634996f715adc06 (patch)
tree69a490e7aa115e8514a3aef6dbafb97e6e244d6a
parent08b7d9e41e05df9956c5da1514a2edd29567a0ac (diff)
downloadaspectj-1f118ad52bfe5405ca913f210634996f715adc06.tar.gz
aspectj-1f118ad52bfe5405ca913f210634996f715adc06.zip
282299: generics and declare parents - bridge method unrecognized
-rw-r--r--tests/bugs166/pr282299/Code.java28
-rw-r--r--tests/src/org/aspectj/systemtest/ajc166/Ajc166Tests.java4
-rw-r--r--tests/src/org/aspectj/systemtest/ajc166/ajc166.xml6
3 files changed, 37 insertions, 1 deletions
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>
+{
+ V get(String key);
+
+ void set(String key, V value);
+}
+
+class AccessorImpl<V> implements Accessor<V> {
+
+ 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<String>;
+}
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 @@
<suite>
+ <ajc-test dir="bugs166/pr282299" title="generics and decp">
+ <compile files="Code.java" options="-1.5"/>
+ </ajc-test>
+
<ajc-test dir="bugs166/pr284297" title="generic signature problem">
<compile files="DomainLogic.java DomainObject.java FancyDomainLogic.java" options="-1.5" outjar="code.jar"/>
<compile files="FancyDomainLogicImpl.java" options="-1.5" classpath="code.jar"/>
- </ajc-test>
+ </ajc-test>
<ajc-test dir="bugs166/pr283229" title="interfaces and serializable">
<compile files="Foo.java" options="-1.5 -XaddSerialVersionUID"/>