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.
Some folders, such as Templates, are ordered in part yet contain children, such as Project, which do not need to be ordered (e.g. because they are hidden from view). If you omit the position attribute on them, you get a spurious warning. So it is desirable to add some position attribute, yet the actual value is irrelevant (but there should be no warnings about several such children having the same arbitrary position). Simple solution is to suppress the warning about multiple children sharing a position in case that position is 0 (zero).
Checking in nbbuild/antsrc/org/netbeans/nbbuild/LayerIndex.java; /shared/data/ccvs/repository/nbbuild/antsrc/org/netbeans/nbbuild/LayerIndex.java,v <-- LayerIndex.java new revision: 1.4; previous revision: 1.3 done Checking in openide/fs/src/org/openide/filesystems/Ordering.java; /shared/data/ccvs/repository/openide/fs/src/org/openide/filesystems/Ordering.java,v <-- Ordering.java new revision: 1.3; previous revision: 1.2 done Checking in openide/fs/test/unit/src/org/openide/filesystems/OrderingTest.java; /shared/data/ccvs/repository/openide/fs/test/unit/src/org/openide/filesystems/OrderingTest.java,v <-- OrderingTest.java new revision: 1.3; previous revision: 1.2 done
Personally I do not like this too much. Can't we move all this testing to tests where we can filter all the stuff where our logging is false warning alarm?
I am already preparing a commit validation test for folder ordering. (Runs but has a lot of failures yet to be corrected.) The test just tries to order every folder in SFS and checks for logged warnings. But that is useless for third-party modules.