aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authormkersten <mkersten>2004-04-07 04:07:54 +0000
committermkersten <mkersten>2004-04-07 04:07:54 +0000
commit3b7bd4b6f198e63d41c7491d796d4ae270d6fe7e (patch)
treea2a0a6ab3cb978b29c3f0fb43fb0abf63281a890 /org.aspectj.ajdt.core
parent3500feadbe6a3e2f2b4b4f4d360c2236b25bf7ee (diff)
downloadaspectj-3b7bd4b6f198e63d41c7491d796d4ae270d6fe7e.tar.gz
aspectj-3b7bd4b6f198e63d41c7491d796d4ae270d6fe7e.zip
AsmBuilderTest.testNullHandlingOfVisit() now checks for an NPE instead of an EmptyStackException. I'm not sure how the original could have worked in the absence of the handle cache.
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/core/builder/AsmBuilderTest.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/core/builder/AsmBuilderTest.java b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/core/builder/AsmBuilderTest.java
index 43160e832..61d2b481d 100644
--- a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/core/builder/AsmBuilderTest.java
+++ b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/core/builder/AsmBuilderTest.java
@@ -60,10 +60,15 @@ public class AsmBuilderTest extends TestCase {
BlockScope scope = null;
try {
- new AsmHierarchyBuilder(new CompilationResult(cu, 0, 0, 0)).visit(local, scope);
- } catch (Exception e) {
- assertTrue(e instanceof EmptyStackException);
- }
+ new AsmHierarchyBuilder(new CompilationResult(cu, 0, 0, 0), null).visit(local, scope);
+ }
+ catch (Exception e) {
+ assertTrue(e instanceof NullPointerException);
+ }
+// XXX put back?
+// catch (Exception e) {
+// assertTrue(e instanceof EmptyStackException);
+// }
}
}