diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ajcTests.xml | 6 | ||||
-rw-r--r-- | tests/bugs/AbstractBaseAndInterTypeInterface.java | 30 |
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 |