summaryrefslogtreecommitdiffstats
path: root/tests/new
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2003-03-12 19:51:43 +0000
committerjhugunin <jhugunin>2003-03-12 19:51:43 +0000
commita57ec8d9cff0ca35ce9efb59c79a5f1ec90c13cb (patch)
tree68b31b1937984f97c0603f8ae82a77d1aaaba416 /tests/new
parentf76921c5e0053c472abf8ccd3979116f180aae0a (diff)
downloadaspectj-a57ec8d9cff0ca35ce9efb59c79a5f1ec90c13cb.tar.gz
aspectj-a57ec8d9cff0ca35ce9efb59c79a5f1ec90c13cb.zip
fix and tests for checked exception on advice being checked at
woven join points
Diffstat (limited to 'tests/new')
-rw-r--r--tests/new/AdviceThrowsCf.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/new/AdviceThrowsCf.java b/tests/new/AdviceThrowsCf.java
index f8564d979..279bd2d55 100644
--- a/tests/new/AdviceThrowsCf.java
+++ b/tests/new/AdviceThrowsCf.java
@@ -77,4 +77,17 @@ aspect A {
}
before() throws CheckedExc: staticinitialization(C) { //ERR: can't throw
}
+
+ void around() throws CheckedExc: canThrowChecked() {
+ proceed();
+ }
+
+ void around() throws CheckedExc: canThrowUnchecked() { // ERR: can't throw
+ proceed();
+ }
+
+ void around() throws UncheckedExc: canThrowUnchecked() || set(int C.x) {
+ proceed();
+ }
+
}