diff options
author | Andy Clement <aclement@pivotal.io> | 2015-11-19 08:54:14 -0800 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2015-11-19 08:54:14 -0800 |
commit | af8a5a2ac9a64e6f48101d7442024a685450285a (patch) | |
tree | 724fd5b796d73a7b8c98c26abf7f24f8cf928d7b /tests/bugs188/defaultMethods | |
parent | 0c818ae090e583cfa49407a0af17d1f1498f0a1f (diff) | |
download | aspectj-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.java | 18 | ||||
-rw-r--r-- | tests/bugs188/defaultMethods/Code2.java | 18 |
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"); + } +} + |