]> source.dussan.org Git - aspectj.git/commitdiff
testcode for 134425
authoraclement <aclement>
Thu, 18 May 2006 08:14:34 +0000 (08:14 +0000)
committeraclement <aclement>
Thu, 18 May 2006 08:14:34 +0000 (08:14 +0000)
tests/bugs152/pr134425/Derived.aj [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java
tests/src/org/aspectj/systemtest/ajc152/ajc152.xml

diff --git a/tests/bugs152/pr134425/Derived.aj b/tests/bugs152/pr134425/Derived.aj
new file mode 100644 (file)
index 0000000..dcf2e9a
--- /dev/null
@@ -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
index 645a7f0a5a55ec7db24d42c285dd54e51bcd1107..414714883d2f94520067a579f970040b26f1d49e 100644 (file)
@@ -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");}
index 122af5fdd64b9982f45199b0d45931139e094b6f..e5d02c4237ea434eaf33ab9b62610922f9ceabe6 100644 (file)
       </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