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.

Bug 107028 - Exception while trying to Undo delete Simple Type.
Summary: Exception while trying to Undo delete Simple Type.
Status: VERIFIED DUPLICATE of bug 106988
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: pnarayan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-18 15:32 UTC by Michael Nazarov
Modified: 2007-06-26 16:48 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Nazarov 2007-06-18 15:32:02 UTC
Create number of Simple Types within XML schema.
Remove one of them using Refactoring then remove one more from source code.
Choose Refactor -> Undo from menu.

java.lang.ArrayIndexOutOfBoundsException
	at java.lang.System.arraycopy(Native Method)
	at org.netbeans.editor.DocumentContent.moveGap(DocumentContent.java:215)
	at org.netbeans.editor.DocumentContent.insertText(DocumentContent.java:271)
	at org.netbeans.editor.DocumentContent$Edit.undoOrRedo(DocumentContent.java:423)
	at org.netbeans.editor.DocumentContent$Edit.undo(DocumentContent.java:400)
	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)
Comment 1 Sonali Kochar 2007-06-18 17:00:38 UTC

*** This issue has been marked as a duplicate of 106988 ***
Comment 2 Mikhail Matveev 2007-06-26 16:48:44 UTC
Verified duplicate