aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features151/swallowedExceptions
diff options
context:
space:
mode:
authoracolyer <acolyer>2006-02-10 18:00:52 +0000
committeracolyer <acolyer>2006-02-10 18:00:52 +0000
commit26cc94c194549e2b0c6245916bf57d1dd5ad2897 (patch)
treee9667c45044e0068616fe6eed41b71ee3804ace6 /tests/features151/swallowedExceptions
parentd07f63a30c5af1a380f5091f18c21003aebfae79 (diff)
downloadaspectj-26cc94c194549e2b0c6245916bf57d1dd5ad2897.tar.gz
aspectj-26cc94c194549e2b0c6245916bf57d1dd5ad2897.zip
Progress on: empty catch block warning - test cases
Diffstat (limited to 'tests/features151/swallowedExceptions')
-rw-r--r--tests/features151/swallowedExceptions/SwallowedException.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/features151/swallowedExceptions/SwallowedException.java b/tests/features151/swallowedExceptions/SwallowedException.java
new file mode 100644
index 000000000..db1b1849f
--- /dev/null
+++ b/tests/features151/swallowedExceptions/SwallowedException.java
@@ -0,0 +1,17 @@
+public class SwallowedException {
+
+ public void foo() throws Exception {
+ throw new Exception("ta da!");
+ }
+
+ public void bar() {
+ try {
+ foo();
+ }
+ catch(Exception ex) {
+ // yum yum
+ }
+ }
+
+
+} \ No newline at end of file