This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Create number of Complex Type within XML schema. Remove one of them using Refactoring then remove one more from source code. Choose Refactor -> Undo from menu. java.lang.IndexOutOfBoundsException: index=32, count=1, size()=27 at org.netbeans.lib.editor.util.GapList.remove(GapList.java:634) at org.netbeans.lib.editor.util.swing.GapBranchElement.replace(GapBranchElement.java:121) at org.netbeans.lib.editor.util.swing.GapBranchElement$Edit.undo(GapBranchElement.java:167) at org.netbeans.editor.BaseDocumentEvent.undo(BaseDocumentEvent.java:262) at org.netbeans.editor.GuardedDocumentEvent.undo(GuardedDocumentEvent.java:47) at javax.swing.undo.CompoundEdit.undo(CompoundEdit.java:46) at javax.swing.undo.CompoundEdit.undo(CompoundEdit.java:46) at org.netbeans.modules.xml.xam.AbstractModel$ModelUndoableEdit.undo(AbstractModel.java:555) at javax.swing.undo.UndoManager.undoTo(UndoManager.java:320) at javax.swing.undo.UndoManager.undo(UndoManager.java:398) at org.netbeans.modules.xml.refactoring.XMLRefactoringTransaction.rollback(XMLRefactoringTransaction.java:118) at org.netbeans.modules.refactoring.api.RefactoringSession.undoRefactoring(RefactoringSession.java:132) at org.netbeans.modules.refactoring.spi.impl.UndoManager$SessionUndoItem.undo(UndoManager.java:508) at org.netbeans.modules.refactoring.spi.impl.UndoManager.undo(UndoManager.java:174) at org.netbeans.modules.refactoring.spi.impl.UndoAction.performAction(UndoAction.java:74) at org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:96) at org.netbeans.modules.openide.util.ActionsBridge$ActionRunnable.actionPerformed(ActionsBridge.java:89) at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:82) at org.netbeans.modules.openide.actions.ActionsBridgeImpl.invokeAction(ActionsBridgeImpl.java:30) at org.netbeans.modules.openide.util.ActionsBridge$ActionRunnable.doRun(ActionsBridge.java:80) at org.netbeans.modules.openide.util.ActionsBridge$1.run(ActionsBridge.java:49) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)
*** This issue has been marked as a duplicate of 106988 ***
Verified duplicate