aboutsummaryrefslogtreecommitdiffstats
path: root/tests/design/intro/ExceptionsCP.java
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2002-12-24 00:34:05 +0000
committerjhugunin <jhugunin>2002-12-24 00:34:05 +0000
commitd3156f737f3bb24e3ad695205da5977bef519275 (patch)
treeaa658fcfaa346c00ed97c732f106ab348f337646 /tests/design/intro/ExceptionsCP.java
parent7e28c28f4b09bacd1e0c0f7e7326fe68f5e6c7f6 (diff)
downloadaspectj-d3156f737f3bb24e3ad695205da5977bef519275.tar.gz
aspectj-d3156f737f3bb24e3ad695205da5977bef519275.zip
added coverage for exceptions thrown from intro methods
these tests were inspired by failures compiling observer example
Diffstat (limited to 'tests/design/intro/ExceptionsCP.java')
-rw-r--r--tests/design/intro/ExceptionsCP.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/design/intro/ExceptionsCP.java b/tests/design/intro/ExceptionsCP.java
new file mode 100644
index 000000000..92d0b9b27
--- /dev/null
+++ b/tests/design/intro/ExceptionsCP.java
@@ -0,0 +1,25 @@
+import org.aspectj.testing.Tester;
+
+import java.io.IOException;
+
+public class ExceptionsCP {
+ public static void main(String[] args) {
+ C c = new C();
+ try {
+ c.foo();
+ } catch (IOException io) {}
+ c.bar();
+ }
+}
+class Root {
+ public void bar() {}
+}
+
+class C extends Root {
+
+}
+
+
+aspect A {
+ public void C.foo() throws IOException { }
+}