From d17ddfebab19eb38a2ec52ca86f701686947f25d Mon Sep 17 00:00:00 2001 From: Marc-Andre Laperle Date: Sun, 13 Mar 2011 10:27:31 +0000 Subject: [PATCH] Bug 335122 - Fix index locking issue discovered by running the 'old' ImplementMethod test (new one being Bug 292851). Should fix build not ending. --- .../org/eclipse/cdt/internal/ui/refactoring/CRefactoring.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/CRefactoring.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/CRefactoring.java index a4f4c4c5fa5..03e0a041deb 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/CRefactoring.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/CRefactoring.java @@ -294,7 +294,9 @@ public abstract class CRefactoring extends Refactoring { if (fIndex != null) { fIndex.releaseReadLock(); } - fIndex= null; + // Marc-Andre Laperle : I don't think we want to null this out, + // if the lock is acquired twice then the lock can only be released once + //fIndex= null; } public IIndex getIndex() {