aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs185/451966/Code.java12
-rw-r--r--tests/src/org/aspectj/systemtest/ajc185/ajc185.xml7
2 files changed, 12 insertions, 7 deletions
diff --git a/tests/bugs185/451966/Code.java b/tests/bugs185/451966/Code.java
index 7a60ede4c..ff4749340 100644
--- a/tests/bugs185/451966/Code.java
+++ b/tests/bugs185/451966/Code.java
@@ -1,7 +1,17 @@
+public class Code {
+ public static void main(String []argv) {
+ new Bar().foo();
+ }
+}
interface Common { }
-interface Allergies extends Common { }
+interface Allergies extends Common {
+ default public void foo() {
+ }
+}
+
+class Bar implements Allergies { }
aspect Y {
private boolean Common.instancesInvariant() {
diff --git a/tests/src/org/aspectj/systemtest/ajc185/ajc185.xml b/tests/src/org/aspectj/systemtest/ajc185/ajc185.xml
index 29ba4af75..5e8f8dc8a 100644
--- a/tests/src/org/aspectj/systemtest/ajc185/ajc185.xml
+++ b/tests/src/org/aspectj/systemtest/ajc185/ajc185.xml
@@ -5,12 +5,7 @@
<ajc-test dir="bugs185/451966" title="itd interface">
<compile files="Code.java" options="-1.8"/>
-<run class="One">
- <stdout>
- <line text="In instance check method doit()"/>
- <line text="In advice()"/>
- <line text="Method m() running"/>
- </stdout>
+<run class="Code">
</run>
</ajc-test>