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 27293 - Write out Modules/*.xml files in "canonical" format
Summary: Write out Modules/*.xml files in "canonical" format
Alias: None
Product: platform
Classification: Unclassified
Component: Autoupdate (show other bugs)
Version: 3.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: akemr
Depends on:
Blocks: 26786
  Show dependency tree
Reported: 2002-09-13 07:05 UTC by Jesse Glick
Modified: 2003-08-05 15:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2002-09-13 07:05:38 UTC
For performance reasons, the module system now
hopes that Modules/*.xml files are in a rigid file
format - the exact format that it in fact writes
them out in. If it finds them in this exact
format, it can parse them more quickly than with
an XML parser.

AU, however, writes out files in a slightly
different way. This causes the module system to
have to fall back to the full XML parse, wasting a
bit of startup time. For example, install treefs
from AU and restart and you will see:

[org.netbeans.core.modules] Note - failed to parse
Modules/org-netbeans-modules-treefs.xml the quick
way, falling back on XMLReader

Please look at
org.netbeans.core.modules.ModuleList and copy that
exact formatting, byte for byte. If successful,
AU-generated XML files should exactly match the
module-system-written ones, and this warning will
not appear.
Comment 1 akemr 2002-09-13 10:07:39 UTC
Fixed in trunk.
Comment 2 Lukas Hasik 2003-08-05 15:50:06 UTC