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.
In the Schema view of the XSD editor, if component nodes are reordered via dragging and dropping, and the user applies Undo and Redo, this will eventually lead to duplicate elements appearing. To reproduce, open the Purchase Order sample schema, select the USAddress node, drag 'street' above 'name', then undo/redo, drag another node, and undo/redo again -- a duplicate element appears. Note that prior to a bug fix in XDM, the duplicate element would appear after the first undo/redo, so this issue may be a continuation of that earlier problem.
Fix checked into release55 branch. Please verify using nightly build.
Change list: - xml/schema/api: P api/test/unit/src/org/netbeans/modules/xml/schema/model/impl/xdm/SyncTest.java U api/test/unit/src/org/netbeans/modules/xml/schema/model/resources/undoredotest.xsd U api/test/unit/src/org/netbeans/modules/xml/schema/model/resources/undoredotest1.xsd U api/test/unit/src/org/netbeans/modules/xml/schema/model/resources/undoredotest2.xsd - xml/xdm: U xdm/src/org/netbeans/modules/xml/xdm/diff/DefaultElementIdentity.java P xdm/src/org/netbeans/modules/xml/xdm/diff/DiffFinder.java P xdm/src/org/netbeans/modules/xml/xdm/diff/XDMTreeDiff.java U xdm/src/org/netbeans/modules/xml/xdm/xam/XDMAccess.java P xdm/test/unit/src/org/netbeans/modules/xml/xdm/diff/MergeDiffTest.java
Virified in build060720.
*** Issue 79258 has been marked as a duplicate of this issue. ***