From dddd1236cd21982a07f887ff7fa5d484ebc3b86c Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Wed, 8 Oct 2014 13:23:50 -0700 Subject: Fix 443355: interface super references --- tests/bugs183/443355/Demo.java | 24 ++++++++++++++++++++++ .../org/aspectj/systemtest/ajc183/Ajc183Tests.java | 4 ++++ tests/src/org/aspectj/systemtest/ajc183/ajc183.xml | 9 ++++++++ 3 files changed, 37 insertions(+) create mode 100644 tests/bugs183/443355/Demo.java (limited to 'tests') diff --git a/tests/bugs183/443355/Demo.java b/tests/bugs183/443355/Demo.java new file mode 100644 index 000000000..2a6d9df1f --- /dev/null +++ b/tests/bugs183/443355/Demo.java @@ -0,0 +1,24 @@ +interface Foo { + default void printMessage() { + System.out.println("GW"); + } +} + +interface Bar { + default void printMessage() { + System.out.println("HW"); + } +} + +class FooImpl implements Foo,Bar { + public void printMessage() { + Bar.super.printMessage(); + } +} + + +public class Demo { + public static void main(String[] args) { + new FooImpl().printMessage(); + } +} diff --git a/tests/src/org/aspectj/systemtest/ajc183/Ajc183Tests.java b/tests/src/org/aspectj/systemtest/ajc183/Ajc183Tests.java index 8f1a6ccac..bb033b6db 100644 --- a/tests/src/org/aspectj/systemtest/ajc183/Ajc183Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc183/Ajc183Tests.java @@ -21,6 +21,10 @@ import org.aspectj.testing.XMLBasedAjcTestCase; */ public class Ajc183Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + public void testSuperCalls_443355() { + runTest("super calls"); + } + public void testSuppressTypeNotFound_436653() { runTest("suppress type not found"); } diff --git a/tests/src/org/aspectj/systemtest/ajc183/ajc183.xml b/tests/src/org/aspectj/systemtest/ajc183/ajc183.xml index 163ce443e..c24987f6b 100644 --- a/tests/src/org/aspectj/systemtest/ajc183/ajc183.xml +++ b/tests/src/org/aspectj/systemtest/ajc183/ajc183.xml @@ -2,6 +2,15 @@ + + + + + + + + + -- cgit v1.2.3