From b8a9c0463f679c5cd681c724c5e9cf1518e1813b Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 4 Feb 2009 21:19:47 +0000 Subject: [PATCH] 263666: missing counter for around advice differing in return type --- tests/bugs164/pr263666/x/A.java | 7 +++++ tests/bugs164/pr263666/x/B.java | 13 +++++++++ tests/bugs164/pr263666/x/OverrideOptions.aj | 32 +++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 tests/bugs164/pr263666/x/A.java create mode 100644 tests/bugs164/pr263666/x/B.java create mode 100644 tests/bugs164/pr263666/x/OverrideOptions.aj diff --git a/tests/bugs164/pr263666/x/A.java b/tests/bugs164/pr263666/x/A.java new file mode 100644 index 000000000..80fd124c3 --- /dev/null +++ b/tests/bugs164/pr263666/x/A.java @@ -0,0 +1,7 @@ +package x; + +public class A { + public boolean a() { + return false; + } +} diff --git a/tests/bugs164/pr263666/x/B.java b/tests/bugs164/pr263666/x/B.java new file mode 100644 index 000000000..72c1961b8 --- /dev/null +++ b/tests/bugs164/pr263666/x/B.java @@ -0,0 +1,13 @@ +package x; + +public class B { + private int b() { + return b(); + } + + @Override + protected Object clone() throws CloneNotSupportedException { + b(); + return super.clone(); + } +} diff --git a/tests/bugs164/pr263666/x/OverrideOptions.aj b/tests/bugs164/pr263666/x/OverrideOptions.aj new file mode 100644 index 000000000..cccc7798a --- /dev/null +++ b/tests/bugs164/pr263666/x/OverrideOptions.aj @@ -0,0 +1,32 @@ +package x; +public aspect OverrideOptions +{ + + + + + + + + + + + + + + + + /** + * Comment A + */ + boolean around() : execution( public boolean A.a() ) && this( A ) + { + return false; + } + /** + * Comment B + */ + int around() : execution(private int B.b(..)) && this(B){ + return 0; + } +} \ No newline at end of file -- 2.39.5