summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2006-05-18 08:14:34 +0000
committeraclement <aclement>2006-05-18 08:14:34 +0000
commit13035136f74ea376942070bf2b9fb9fa6d710cbe (patch)
tree551393a0b15ff58e3f8610fee2824bf5663d4ea0 /tests
parentbf5c6b8b011fa305ec446e1e9ff5c45ef64f8814 (diff)
downloadaspectj-13035136f74ea376942070bf2b9fb9fa6d710cbe.tar.gz
aspectj-13035136f74ea376942070bf2b9fb9fa6d710cbe.zip
testcode for 134425
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs152/pr134425/Derived.aj17
-rw-r--r--tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java1
-rw-r--r--tests/src/org/aspectj/systemtest/ajc152/ajc152.xml5
3 files changed, 23 insertions, 0 deletions
diff --git a/tests/bugs152/pr134425/Derived.aj b/tests/bugs152/pr134425/Derived.aj
new file mode 100644
index 000000000..dcf2e9a01
--- /dev/null
+++ b/tests/bugs152/pr134425/Derived.aj
@@ -0,0 +1,17 @@
+public aspect Derived {
+ public interface DerivedBean extends Base.BaseBean {}
+
+ public String DerivedBean.describe() {
+ return "Derived state plus "+super.describe();
+ }
+ public static void main(String args[]) {
+ new DerivedBean() {}.describe();
+ }
+}
+
+aspect Base {
+ public interface BaseBean {}
+ public String BaseBean.describe() {
+ return "Base holds "+super.toString();
+ }
+} \ No newline at end of file
diff --git a/tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java b/tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java
index 645a7f0a5..414714883 100644
--- a/tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java
@@ -17,6 +17,7 @@ import org.aspectj.testing.XMLBasedAjcTestCase;
public class Ajc152Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
+ //public void testSuperITDExplosion_pr134425() { runTest("super ITDs");}
//public void testMisbehavingDeclareAnnotation_pr135865() { runTest("misbehaving declare annotation");}
//public void testMisbehavingDeclareAnnotation_pr135865_2() { runTest("misbehaving declare annotation - 2");}
public void testCompletelyBrokenAopConcretization_pr142165_1() { runTest("broken concretization");}
diff --git a/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml b/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml
index 122af5fdd..e5d02c423 100644
--- a/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml
+++ b/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml
@@ -376,4 +376,9 @@
</run>
</ajc-test>
+ <ajc-test dir="bugs152/pr134425" title="super ITDs">
+ <compile files="Derived.aj" options="-1.5"/>
+ <run class="Derived"/>
+ </ajc-test>
+
</suite> \ No newline at end of file