Project: JDT
Bug 84986 Overlapping text edits in inline method
Reported: 2005-02-11 08:10:54 | Status: resolved fixed

I20050209-0800 + zrh-plugins from 20050211_1043 Tried to inline method "getInitializer()" in InlineConstantRefactoring rev 1.53. Caused by: org.eclipse.text.edits.MalformedTreeException: Overlapping text edits at org.eclipse.text.edits.TextEdit$InsertionComparator.compare(TextEdit.java:118) at java.util.Collections.indexedBinarySearch(Collections.java:322) at java.util.Collections.binarySearch(Collections.java:310) at org.eclipse.text.edits.TextEdit.computeInsertionIndex(TextEdit.java:757) at org.eclipse.text.edits.TextEdit.internalAdd(TextEdit.java:742) at org.eclipse.text.edits.TextEdit.addChild(TextEdit.java:332) at org.eclipse.jdt.internal.corext.refactoring.code.InlineMethodRefactoring.createChange(InlineMethodRefactoring.java:278) at org.eclipse.ltk.core.refactoring.CreateChangeOperation.run(CreateChangeOperation.java:117) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1695) at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:86) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:111)

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/InlineMethodWorkspace/TestCases/simple_in/TestSurroundingCallers.java org.eclipse.jdt.ui.tests.refactoring/resources/InlineMethodWorkspace/TestCases/simple_out/TestSurroundingCallers.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/InlineMethodTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/changes/TextChangeCompatibility.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/InlineMethodRefactoring.java