### Eclipse Workspace Patch 1.0 #P tests Index: src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java =================================================================== RCS file: /cvsroot/tools/org.aspectj/modules/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java,v retrieving revision 1.70 diff -u -r1.70 MultiProjectIncrementalTests.java --- src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java 22 Sep 2006 10:49:39 -0000 1.70 +++ src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java 25 Sep 2006 15:15:28 -0000 @@ -1542,6 +1542,24 @@ checkWasFullBuild(); } + public void testPR158573() { + IElementHandleProvider handleProvider = AsmManager.getDefault().getHandleProvider(); + AsmManager.getDefault().setHandleProvider(new JDTLikeHandleProvider()); + initialiseProject("PR158573"); + build("PR158573"); + List warnings = MyTaskListManager.getWarningMessages(); + assertTrue("There should be no warnings:\n"+warnings,warnings.isEmpty()); + alter("PR158573","inc1"); + build("PR158573"); + + checkWasntFullBuild(); + warnings = MyTaskListManager.getWarningMessages(); + assertTrue("There should be no warnings after changing the value of a " + + "variable:\n"+warnings,warnings.isEmpty()); + AsmManager.getDefault().setHandleProvider(handleProvider); + } + + // --- helper code --- /** Index: multiIncremental/PR158573/inc1/A.aj =================================================================== RCS file: multiIncremental/PR158573/inc1/A.aj diff -N multiIncremental/PR158573/inc1/A.aj --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ multiIncremental/PR158573/inc1/A.aj 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,8 @@ +public aspect A { + + public static int i = 1; + + before() : execution(* *.*(..)) { + } + +} Index: multiIncremental/PR158573/base/C.java =================================================================== RCS file: multiIncremental/PR158573/base/C.java diff -N multiIncremental/PR158573/base/C.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ multiIncremental/PR158573/base/C.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,7 @@ +public class C { + + public void m() { + + } + +} Index: multiIncremental/PR158573/base/A.aj =================================================================== RCS file: multiIncremental/PR158573/base/A.aj diff -N multiIncremental/PR158573/base/A.aj --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ multiIncremental/PR158573/base/A.aj 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,8 @@ +public aspect A { + + public static int i = 0; + + before() : execution(* *.*(..)) { + } + +}