summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndy Clement <aclement@gopivotal.com>2014-10-08 13:23:50 -0700
committerAndy Clement <aclement@gopivotal.com>2014-10-08 13:23:50 -0700
commitdddd1236cd21982a07f887ff7fa5d484ebc3b86c (patch)
tree086c2a878d585e32f50c0bdc0d68c8d956a843cd /tests
parentb6aec92d1ec73033130ecbb5552bf54ceb1cb85f (diff)
downloadaspectj-dddd1236cd21982a07f887ff7fa5d484ebc3b86c.tar.gz
aspectj-dddd1236cd21982a07f887ff7fa5d484ebc3b86c.zip
Fix 443355: interface super references
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs183/443355/Demo.java24
-rw-r--r--tests/src/org/aspectj/systemtest/ajc183/Ajc183Tests.java4
-rw-r--r--tests/src/org/aspectj/systemtest/ajc183/ajc183.xml9
3 files changed, 37 insertions, 0 deletions
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 @@
<suite>
+ <ajc-test dir="bugs183/443355" title="super calls">
+ <compile options="-1.8" files="Demo.java"/>
+ <run class="Demo">
+ <stdout>
+ <line text="HW"/>
+ </stdout>
+ </run>
+ </ajc-test>
+
<ajc-test dir="bugs183/436653" title="suppress type not found 4">
<compile options="-1.8 -Xlint:ignore" files="X.java" outjar="aspects.jar"/>
<compile options="-1.8" files="Runner.java"/>