]
RH Bugzilla Integration commented on TEIIDDES-2534:
---------------------------------------------------
Barry LaFond <blafond(a)redhat.com> changed the Status of [bug
Model Refactoring: renaming folder fails when it contains a source
model that has a dependent view model
--------------------------------------------------------------------------------------------------------
Key: TEIIDDES-2534
URL:
https://issues.jboss.org/browse/TEIIDDES-2534
Project: Teiid Designer
Issue Type: Bug
Components: Modeling
Affects Versions: 9.0.2
Reporter: Andrej Šmigala
Assignee: Barry LaFond
Fix For: 9.2, 9.0.3
Attachments: folder-rename.png
When renaming a folder, the refactoring fails with the following exception:
{noformat}
org.eclipse.text.edits.MalformedTreeException: Overlapping text edits
at org.eclipse.text.edits.TextEdit$InsertionComparator.compare(TextEdit.java:121)
at java.util.Collections.indexedBinarySearch(Collections.java:377)
at java.util.Collections.binarySearch(Collections.java:365)
at org.eclipse.text.edits.TextEdit.computeInsertionIndex(TextEdit.java:796)
at org.eclipse.text.edits.TextEdit.internalAdd(TextEdit.java:781)
at org.eclipse.text.edits.TextEdit.addChild(TextEdit.java:335)
at
org.teiid.designer.ui.refactor.RefactorResourcesUtils.calculateModelImportsElementLChanges(RefactorResourcesUtils.java:645)
at
org.teiid.designer.ui.refactor.rename.RenameResourceRefactoring$RelatedResourceCallback.indexFile(RenameResourceRefactoring.java:70)
at
org.teiid.designer.ui.refactor.RefactorResourcesUtils.calculateRelatedResources(RefactorResourcesUtils.java:1068)
at
org.teiid.designer.ui.refactor.rename.RenameResourceRefactoring.checkFinalConditions(RenameResourceRefactoring.java:248)
at
org.eclipse.ltk.core.refactoring.CheckConditionsOperation.run(CheckConditionsOperation.java:85)
at
org.eclipse.ltk.core.refactoring.CreateChangeOperation.run(CreateChangeOperation.java:121)
at
org.eclipse.ltk.core.refactoring.PerformChangeOperation.run(PerformChangeOperation.java:209)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313)
at
org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
{noformat}