aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-11-28 12:08:29 +0000
committeracolyer <acolyer>2005-11-28 12:08:29 +0000
commit508dbcbc90bc7526fc8cef9fe924a97c166e5a0e (patch)
treefd87154349fbbca8e6d51314bb5bfab7c0c12f0e /tests
parentae62613a4a5ad79fbc18498ef3aefa170656644d (diff)
downloadaspectj-508dbcbc90bc7526fc8cef9fe924a97c166e5a0e.tar.gz
aspectj-508dbcbc90bc7526fc8cef9fe924a97c166e5a0e.zip
tests for pr11280, update to reflection api to get classloading right for test suite etc.
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs150/Pr112880.aj37
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java4
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/ajc150.xml12
3 files changed, 52 insertions, 1 deletions
diff --git a/tests/bugs150/Pr112880.aj b/tests/bugs150/Pr112880.aj
new file mode 100644
index 000000000..14a3d9d87
--- /dev/null
+++ b/tests/bugs150/Pr112880.aj
@@ -0,0 +1,37 @@
+
+abstract class AbstractAttributeGuiFactory<A,B> {
+
+ public A getThis() {
+ return null;
+ }
+
+ public B getThat() {
+ return null;
+ }
+
+}
+
+class ColorAttributeGuiFactory extends AbstractAttributeGuiFactory<C1,C2> {}
+
+class C1 {}
+
+class C2 {}
+
+aspect ForceParameterization {
+
+
+ before() : call(C1 *(..)) || call(C2 *(..)) {
+ System.out.println("method returning C1 or C2");
+ }
+
+}
+
+public class Pr112880 {
+
+ public static void main(String[] args) {
+ ColorAttributeGuiFactory f = new ColorAttributeGuiFactory();
+ f.getThis();
+ f.getThat();
+ }
+
+} \ No newline at end of file
diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
index c0ae27441..282e04c8b 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
@@ -747,6 +747,10 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
runTest("parameterized pointcut and advice");
}
+ public void testDoublyParameterizedAbstractType() {
+ runTest("double parameter generic abstract type");
+ }
+
/*
* Load-time weaving bugs
*/
diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
index 311903ca1..bc6d6d009 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
+++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
@@ -37,8 +37,18 @@
<line text="AA.going()"/>
</stdout>
</run>
- </ajc-test>acj
+ </ajc-test>
+ <ajc-test dir="bugs150" pr="112880" title="double parameter generic abstract type">
+ <compile files="Pr112880.aj" options="-1.5">
+ </compile>
+ <run class="Pr112880">
+ <stdout>
+ <line text="method returning C1 or C2"/>
+ <line text="method returning C1 or C2"/>
+ </stdout>
+ </run>
+ </ajc-test>
<ajc-test dir="bugs150/pr114005" title="Annotated ITDFs - 2">
<compile files="Declaration2.java" options="-1.5"/>