diff options
author | acolyer <acolyer> | 2005-03-14 02:17:51 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-03-14 02:17:51 +0000 |
commit | 204274dc0529ecbbaa20d72eec49a14ddf4ba34c (patch) | |
tree | 69ab15251122235278acaf91a2ff9158121870f9 /tests/decs/VerifyError.aj | |
parent | e35d9ee62484336a691cfc3990c507c482a2d06a (diff) | |
download | aspectj-204274dc0529ecbbaa20d72eec49a14ddf4ba34c.tar.gz aspectj-204274dc0529ecbbaa20d72eec49a14ddf4ba34c.zip |
test cases for Bugzilla Bug 42743: declare soft limitation
Diffstat (limited to 'tests/decs/VerifyError.aj')
-rw-r--r-- | tests/decs/VerifyError.aj | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/decs/VerifyError.aj b/tests/decs/VerifyError.aj new file mode 100644 index 000000000..835748770 --- /dev/null +++ b/tests/decs/VerifyError.aj @@ -0,0 +1,23 @@ +import java.io.IOException; +import org.aspectj.lang.SoftException; + +public class VerifyError { + + static void foo() throws IOException { + throw new IOException(); + } + + public static void main(String[] args) throws Exception{ + try { + foo(); + } catch (SoftException sEx) { + // + } + } +} + + +aspect Soften { + + declare soft : IOException : call(* foo()); +}
\ No newline at end of file |