aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/ErroneousExceptionConversion1.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/ErroneousExceptionConversion1.java')
-rw-r--r--tests/bugs/ErroneousExceptionConversion1.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/bugs/ErroneousExceptionConversion1.java b/tests/bugs/ErroneousExceptionConversion1.java
new file mode 100644
index 000000000..9a8f0e2ab
--- /dev/null
+++ b/tests/bugs/ErroneousExceptionConversion1.java
@@ -0,0 +1,26 @@
+import org.aspectj.lang.*;
+import org.aspectj.testing.Tester;
+
+aspect Watchcall {
+ pointcut myConstructor(): execution(new(..));
+
+ before(): myConstructor() {
+ System.err.println("Entering Constructor");
+ }
+
+ after(): myConstructor() {
+ System.err.println("Leaving Constructor");
+ }
+}
+
+public class ErroneousExceptionConversion1 {
+ public static void main(String[] args) {
+ try {
+ ErroneousExceptionConversion1 c = new ErroneousExceptionConversion1();
+ Tester.checkFailed("shouldn't get here");
+ } catch (NoAspectBoundException nab) {
+ // expected
+ }
+
+ }
+}