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 168409 - Gratuitous parse & recreation of build-impl.xml
Summary: Gratuitous parse & recreation of build-impl.xml
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Project (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-10 16:04 UTC by Jesse Glick
Modified: 2016-07-07 08:37 UTC (History)
0 users

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 Jesse Glick 2009-07-10 16:04:11 UTC
While investigating random failures of the form

org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified. 
	at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.createElement(CoreDocumentImpl.java:626)
	at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.importNode(CoreDocumentImpl.java:1485)
	at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.importNode(CoreDocumentImpl.java:1444)
	at org.openide.xml.XMLUtil.normalize(XMLUtil.java:820)
	at org.openide.xml.XMLUtil.write(XMLUtil.java:394)
	at org.netbeans.spi.project.support.ant.GeneratedFilesHelper.applyBuildExtensions(GeneratedFilesHelper.java:503)

I found that aBE parses and then reserializes build-impl.xml even when there are no build extensions at all, i.e.
AntBuildExtenderAccessor.DEFAULT.getExtensions(ext) is empty. Probably it should just return resultData straight away in
such a case.

I would fix it myself but I found that there is no test covering this method; if you change it to just always return
resultData, all tests in the module pass.
Comment 1 Jesse Glick 2009-07-10 16:17:21 UTC
Potential performance issue - wasted time; and potential aesthetic issue - could change formatting in an undesirable way
relative to original XSLT output. Probably not P3 though.
Comment 2 Antonin Nebuzelsky 2010-07-30 15:17:21 UTC
Reassigning to default owner.
Comment 3 Martin Balin 2016-07-07 08:37:59 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