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 244387

Summary: IllegalArgumentException: ancestor == descendant!!!
Product: xml Reporter: dkkopp <dkkopp>
Component: Text-EditAssignee: Svata Dedic <sdedic>
Status: RESOLVED WONTFIX    
Severity: normal CC: fmonsalvo
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 23737
Attachments: stacktrace

Description dkkopp 2014-05-08 15:40:02 UTC
Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b70, Java(TM) SE Runtime Environment, 1.8.0-b132
OS: Mac OS X

User Comments:
GUEST: Editing an xml document,
deleted some text from element content that contained XML entities

fmonsalvo: I was editing a xsl file, changing some fields order.

dkkopp: Just working

GUEST: 1




Stacktrace: 
java.lang.IllegalArgumentException: ancestor == descendant!!!
   at org.netbeans.modules.editor.structure.api.DocumentModel.isDescendantOf(DocumentModel.java:322)
   at org.netbeans.modules.editor.structure.api.DocumentModel.getChildren(DocumentModel.java:635)
   at org.netbeans.modules.editor.structure.api.DocumentElement.getChildren(DocumentElement.java:299)
   at org.netbeans.modules.xml.text.structure.XMLDocumentModelProvider.getDescendantsOfNotSkippedElements(XMLDocumentModelProvider.java:474)
   at org.netbeans.modules.xml.text.structure.XMLDocumentModelProvider.generateDocumentElements(XMLDocumentModelProvider.java:452)
   at org.netbeans.modules.xml.text.structure.XMLDocumentModelProvider.updateModel(XMLDocumentModelProvider.java:266)
Comment 1 dkkopp 2014-05-08 15:40:05 UTC
Created attachment 147187 [details]
stacktrace
Comment 2 Martin Balin 2016-07-07 09:56:16 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss