]> source.dussan.org Git - aspectj.git/commitdiff
282299: generics and declare parents - bridge method unrecognized
authoraclement <aclement>
Mon, 27 Jul 2009 22:00:21 +0000 (22:00 +0000)
committeraclement <aclement>
Mon, 27 Jul 2009 22:00:21 +0000 (22:00 +0000)
tests/bugs166/pr282299/Code.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc166/Ajc166Tests.java
tests/src/org/aspectj/systemtest/ajc166/ajc166.xml

diff --git a/tests/bugs166/pr282299/Code.java b/tests/bugs166/pr282299/Code.java
new file mode 100644 (file)
index 0000000..8506248
--- /dev/null
@@ -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>;
+}
index 6019d7a21458d94c7979ad0f9599d0ef3c7e7643..8e5f0bbf9c9eed54ce2249e7ad9f603aa4219e23 100644 (file)
@@ -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");
        }
index 6ccf9262e00da257fd762f9f58c52cc2ddbfb91d..27628adbb402c80a3e115839025614ab45d590c7 100644 (file)
@@ -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"/>