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 201475 - Regression in editor Undo/Redo
Summary: Regression in editor Undo/Redo
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.1
Hardware: PC All
: P2 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-31 06:53 UTC by Denis Anisimov
Modified: 2011-09-17 14:10 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stacktrace (981 bytes, text/plain)
2011-08-31 06:54 UTC, Denis Anisimov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Anisimov 2011-08-31 06:53:35 UTC
There is a unit test for XAM/XDM model:
xml.xdm/test/unit/src/org/netbeans/modules/xml/xam/AbstractModelTest.java
Its method testSourceEditSyncUndo fail with ArrayIndexOutOfBoundsException.
The line where test fail is call to "redo" method for UndoManager.
It is recent regression in editor module.
I'm not sure about issue component. Please correct if it is wrong.

Please see stacktrace attached.
Comment 1 Denis Anisimov 2011-08-31 06:54:46 UTC
Created attachment 110293 [details]
stacktrace
Comment 2 David Konecny 2011-09-06 22:10:49 UTC
I had to disable the unit test until this issue is fixed. Please revert changeset 9012c20a1d89 (#web-main) after you fix the regression. Thanks.
Comment 3 Miloslav Metelka 2011-09-14 07:30:47 UTC
It appears to be fixed by yesterday's 9910e44e24b4. Test passes so I enabled it:
http://hg.netbeans.org/jet-main/rev/24c5c5f65a18
Comment 4 Quality Engineering 2011-09-17 14:10:42 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/24c5c5f65a18
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #201475 - Uncommented test in xml.xdm that now passes properly.