Project: JDT
Bug 148617 [ltk] TextFileChange: violates API-contract of TextChange.acquireDocument
Reported: 2006-06-26 05:16:27 | Status: resolved fixed

When acquiring the document from a TextFileChange twice, the counter <code>fAcquireCount</code> is not incremented to two. Therefore on the first call to releaseDocument, the document is released. The documentation of TextChange indicates that only the second call to releaseDocument should do this.

Files changed in fix:
org.eclipse.ltk.core.refactoring/src/org/eclipse/ltk/core/refactoring/TextFileChange.java