aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoracolyer <acolyer>2004-01-14 15:51:53 +0000
committeracolyer <acolyer>2004-01-14 15:51:53 +0000
commit0071cb4d0f30fc95f335eb6df73ad09e92d662ed (patch)
tree6851f19ac48a5a80772a73b86e2c1ea7105b575d /tests
parent5834de97836ebcc056415736c17c46e8b1dfaf5a (diff)
downloadaspectj-0071cb4d0f30fc95f335eb6df73ad09e92d662ed.tar.gz
aspectj-0071cb4d0f30fc95f335eb6df73ad09e92d662ed.zip
Fix for 38824.
Diffstat (limited to 'tests')
-rw-r--r--tests/ajcTests.xml6
-rw-r--r--tests/bugs/AbstractBaseAndInterTypeInterface.java30
2 files changed, 36 insertions, 0 deletions
diff --git a/tests/ajcTests.xml b/tests/ajcTests.xml
index e07ae9507..b7a030283 100644
--- a/tests/ajcTests.xml
+++ b/tests/ajcTests.xml
@@ -7105,5 +7105,11 @@
</compile>
<run class="ErroneousExceptionConversion1"/>
</ajc-test>
+
+ <ajc-test dir="bugs" pr="38824"
+ title="Anomalous handling of inter-type declarations to abstract base classes in aspectj 1.1">
+ <compile files="AbstractBaseAndInterTypeInterface.java">
+ </compile>
+ </ajc-test>
</suite>
diff --git a/tests/bugs/AbstractBaseAndInterTypeInterface.java b/tests/bugs/AbstractBaseAndInterTypeInterface.java
new file mode 100644
index 000000000..7a70f9aae
--- /dev/null
+++ b/tests/bugs/AbstractBaseAndInterTypeInterface.java
@@ -0,0 +1,30 @@
+// pr 38824
+
+
+public class AbstractBaseAndInterTypeInterface {
+
+ interface I
+ {
+ public void foo();
+ }
+
+ /*abstract*/ class A implements I
+ {
+ }
+
+ class B extends A
+ {
+ }
+
+ private static aspect Test
+ {
+ protected interface ITest {};
+
+ declare parents: A implements ITest;
+
+ public void ITest.foo()
+ {
+ System.out.println("Hi");
+ }
+ }
+} \ No newline at end of file