From: acolyer Date: Mon, 26 Apr 2004 09:53:45 +0000 (+0000) Subject: fix for Bugzilla Bug 59895 X-Git-Tag: Root_ajdt_support~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a4fef441489604938a313b2beac300df315c1709;p=aspectj.git fix for Bugzilla Bug 59895 NPE updating an aspect in incremental mode --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java index 608aea62d..b05092ca2 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java @@ -205,7 +205,8 @@ public class AjBuildManager implements IOutputClassFileNameProvider,IBinarySourc closeOutputStream(); } ret = !handler.hasErrors(); - handler = null; + // bug 59895, don't release reference to handler as may be needed by a nested call + //handler = null; } return ret; } diff --git a/tests/ajcTests.xml b/tests/ajcTests.xml index efffb7547..3f9e7cc1c 100644 --- a/tests/ajcTests.xml +++ b/tests/ajcTests.xml @@ -7665,6 +7665,21 @@ + + + + + + + + + + - - - - - - - - - - +