aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs188/defaultMethods
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2015-11-19 08:54:14 -0800
committerAndy Clement <aclement@pivotal.io>2015-11-19 08:54:14 -0800
commitaf8a5a2ac9a64e6f48101d7442024a685450285a (patch)
tree724fd5b796d73a7b8c98c26abf7f24f8cf928d7b /tests/bugs188/defaultMethods
parent0c818ae090e583cfa49407a0af17d1f1498f0a1f (diff)
downloadaspectj-af8a5a2ac9a64e6f48101d7442024a685450285a.tar.gz
aspectj-af8a5a2ac9a64e6f48101d7442024a685450285a.zip
Fix 461323: around advice on default methods
Diffstat (limited to 'tests/bugs188/defaultMethods')
-rw-r--r--tests/bugs188/defaultMethods/Code.java18
-rw-r--r--tests/bugs188/defaultMethods/Code2.java18
2 files changed, 36 insertions, 0 deletions
diff --git a/tests/bugs188/defaultMethods/Code.java b/tests/bugs188/defaultMethods/Code.java
new file mode 100644
index 000000000..a162fe75e
--- /dev/null
+++ b/tests/bugs188/defaultMethods/Code.java
@@ -0,0 +1,18 @@
+public class Code implements I {
+ public static void main(String[] argv) {
+ new Code().m();
+ }
+}
+aspect X {
+ void around(): execution(* I.*()) {
+ System.out.println("a");
+ proceed();
+ }
+}
+
+interface I {
+ default void m(){
+ System.out.println("b");
+ }
+}
+
diff --git a/tests/bugs188/defaultMethods/Code2.java b/tests/bugs188/defaultMethods/Code2.java
new file mode 100644
index 000000000..ea5469eeb
--- /dev/null
+++ b/tests/bugs188/defaultMethods/Code2.java
@@ -0,0 +1,18 @@
+public class Code2 implements I {
+ public static void main(String[] argv) {
+ new Code2().m();
+ }
+}
+aspect X {
+ void around(): execution(* I.*()) {
+ System.out.println("a");
+ proceed();
+ }
+}
+
+interface I {
+ default void m(){
+ System.out.println("b");
+ }
+}
+