### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java,v retrieving revision 1.288 diff -u -r1.288 MatchLocator.java --- search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java 8 Mar 2007 09:33:02 -0000 1.288 +++ search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java 22 Mar 2007 17:45:52 -0000 @@ -1537,6 +1537,7 @@ if (BasicSearchEngine.VERBOSE) System.out.println("Resolving " + this.currentPossibleMatch.openable.toStringWithAncestors()); //$NON-NLS-1$ + this.lookupEnvironment.unitBeingCompleted = unit; reduceParseTree(unit); if (unit.scope != null) { @@ -1559,6 +1560,7 @@ throw e; } } finally { + this.lookupEnvironment.unitBeingCompleted = null; this.currentPossibleMatch = null; } }