diff options
author | mkersten <mkersten> | 2004-04-07 04:07:54 +0000 |
---|---|---|
committer | mkersten <mkersten> | 2004-04-07 04:07:54 +0000 |
commit | 3b7bd4b6f198e63d41c7491d796d4ae270d6fe7e (patch) | |
tree | a2a0a6ab3cb978b29c3f0fb43fb0abf63281a890 /org.aspectj.ajdt.core | |
parent | 3500feadbe6a3e2f2b4b4f4d360c2236b25bf7ee (diff) | |
download | aspectj-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.java | 13 |
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); +// } } } |