summaryrefslogtreecommitdiffstats
path: root/tests/multiIncremental
diff options
context:
space:
mode:
authoraclement <aclement>2006-07-31 14:03:17 +0000
committeraclement <aclement>2006-07-31 14:03:17 +0000
commitf1f468907e99cf8fcc0ec9a3dedd467a4f78e1f3 (patch)
tree11ac9de5f1071eacbac240d6955ce3fe2bd1470b /tests/multiIncremental
parent4a6ccf0f0d8b8320f665dbdfe3f06c4ac4d242e2 (diff)
downloadaspectj-f1f468907e99cf8fcc0ec9a3dedd467a4f78e1f3.tar.gz
aspectj-f1f468907e99cf8fcc0ec9a3dedd467a4f78e1f3.zip
testcode 152257
Diffstat (limited to 'tests/multiIncremental')
-rw-r--r--tests/multiIncremental/PR152257/base/IOExceptionInjector.aj13
-rw-r--r--tests/multiIncremental/PR152257/base/Main.java13
2 files changed, 26 insertions, 0 deletions
diff --git a/tests/multiIncremental/PR152257/base/IOExceptionInjector.aj b/tests/multiIncremental/PR152257/base/IOExceptionInjector.aj
new file mode 100644
index 000000000..82f4c5c51
--- /dev/null
+++ b/tests/multiIncremental/PR152257/base/IOExceptionInjector.aj
@@ -0,0 +1,13 @@
+// IOExceptionInjector.aj
+package test;
+
+import java.io.IOException;
+
+public aspect IOExceptionInjector {
+ pointcut faultInjection() : call(void methodThatThrows() throws
+IOException);
+
+ void around() throws IOException : faultInjection() {
+ throw new IOException("Exception injected by aspect.");
+ }
+} \ No newline at end of file
diff --git a/tests/multiIncremental/PR152257/base/Main.java b/tests/multiIncremental/PR152257/base/Main.java
new file mode 100644
index 000000000..fe7a67e00
--- /dev/null
+++ b/tests/multiIncremental/PR152257/base/Main.java
@@ -0,0 +1,13 @@
+package test;
+
+import java.io.IOException;
+
+public class Main {
+ public void testMethod() throws IOException {
+ methodThatThrows();
+ }
+
+ public static void methodThatThrows() throws IOException {
+ System.out.println("Inside method that may throw an IOException");
+ }
+} \ No newline at end of file