diff options
author | aclement <aclement> | 2009-02-04 21:19:47 +0000 |
---|---|---|
committer | aclement <aclement> | 2009-02-04 21:19:47 +0000 |
commit | b8a9c0463f679c5cd681c724c5e9cf1518e1813b (patch) | |
tree | 97f01e851a8ba40dae99289f9c9d24724035b259 /tests/bugs164 | |
parent | 518cb3776d4ba529dbbbd1233bd6dc1e385c2469 (diff) | |
download | aspectj-b8a9c0463f679c5cd681c724c5e9cf1518e1813b.tar.gz aspectj-b8a9c0463f679c5cd681c724c5e9cf1518e1813b.zip |
263666: missing counter for around advice differing in return type
Diffstat (limited to 'tests/bugs164')
-rw-r--r-- | tests/bugs164/pr263666/x/A.java | 7 | ||||
-rw-r--r-- | tests/bugs164/pr263666/x/B.java | 13 | ||||
-rw-r--r-- | tests/bugs164/pr263666/x/OverrideOptions.aj | 32 |
3 files changed, 52 insertions, 0 deletions
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 |