--- /dev/null
+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>;
+}
// runTest("generics bridge");
// }
+ public void testGenericsDecp_pr282299() {
+ runTest("generics and decp");
+ }
+
public void testGenericSigProblem_pr284297() {
runTest("generic signature problem");
}
<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"/>