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 62003 - CreatedModifiedFiles.addModuleDependency inserts dep out of order
Summary: CreatedModifiedFiles.addModuleDependency inserts dep out of order
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-09 21:20 UTC by Jesse Glick
Modified: 2005-11-23 10:21 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 2005-08-09 21:20:51 UTC
Seems this call (used e.g. from wizards) fails to insert new deps in alpha
order, e.g. after making a new module and adding a loader:

<module-dependencies>
    <dependency>
        <code-name-base>org.openide.filesystems</code-name-base>
        <build-prerequisite/>
        <compile-dependency/>
        <run-dependency>
            <specification-version>6.2</specification-version>
        </run-dependency>
    </dependency>
    <dependency>
        <code-name-base>org.openide.loaders</code-name-base>
        <build-prerequisite/>
        <compile-dependency/>
        <run-dependency>
            <specification-version>5.5</specification-version>
        </run-dependency>
    </dependency>
    <dependency>
        <code-name-base>org.openide.nodes</code-name-base>
        <build-prerequisite/>
        <compile-dependency/>
        <run-dependency>
            <specification-version>6.5</specification-version>
        </run-dependency>
    </dependency>
    <dependency>
        <code-name-base>org.openide.util</code-name-base>
        <build-prerequisite/>
        <compile-dependency/>
        <run-dependency>
            <specification-version>6.4</specification-version>
        </run-dependency>
    </dependency>
    <dependency>
        <code-name-base>org.openide.text</code-name-base>
        <build-prerequisite/>
        <compile-dependency/>
        <run-dependency>
            <specification-version>6.6</specification-version>
        </run-dependency>
    </dependency>
    <dependency>
        <code-name-base>org.openide.windows</code-name-base>
        <build-prerequisite/>
        <compile-dependency/>
        <run-dependency>
            <specification-version>6.2</specification-version>
        </run-dependency>
    </dependency>
</module-dependencies>

Note text below util.
Comment 1 Martin Krauskopf 2005-09-27 15:03:20 UTC
Hmmm, caused by ModuleDepency.compareTo. I'll use CNB comparator. Should be simple.
Comment 2 Martin Krauskopf 2005-11-15 14:53:14 UTC
Fixed.

Checking in ProjectXMLManager.java; 1.39 -> 1.40;
Checking in test/unit/ProjectXMLManagerTest.java; 1.26 -> 1.27;
Comment 3 pzajac 2005-11-23 10:21:52 UTC
verified