summaryrefslogtreecommitdiffstats
path: root/tests/new
diff options
context:
space:
mode:
Diffstat (limited to 'tests/new')
-rw-r--r--tests/new/ConstructorExecInitFails.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/new/ConstructorExecInitFails.java b/tests/new/ConstructorExecInitFails.java
index 4b5e775e4..e042f10ff 100644
--- a/tests/new/ConstructorExecInitFails.java
+++ b/tests/new/ConstructorExecInitFails.java
@@ -1,4 +1,5 @@
import org.aspectj.testing.*;
+import org.aspectj.lang.*;
/**
* -usejavac mode: no error
@@ -8,7 +9,10 @@ public class ConstructorExecInitFails {
public static void main(String[] args) {
try {
new ConstructorExecInitFails();
- } catch (ExceptionInInitializerError e) {
+ } catch (NoAspectBoundException e) {
+
+ Tester.check(e.getCause() instanceof NoAspectBoundException,
+ "Expected NoAspectBoundException, found " + e.getCause());
return;
}
Tester.checkFailed("shouldn't be able to run");