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 141222 - Folder ordering problem
Summary: Folder ordering problem
Status: RESOLVED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: Visual Designer (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Karol Harezlak
URL: http://deadlock.netbeans.org/hudson/j...
Keywords: RANDOM, TEST
: 141063 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-22 20:10 UTC by Jesse Glick
Modified: 2008-07-28 14:57 UTC (History)
1 user (show)

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 2008-07-22 20:10:32 UTC
Not all children in Templates/MIDP/ marked with the position attribute: [ConverterVisualMIDlet.vmd, GameDesign.vmd,
HelloMIDlet.vmd, VisualDesign.vmd, VisualMIDlet.vmd], but some are: [LocalizationSupport.properties, Midlet.java,
MIDPCanvas.java, VisualMIDlet.java, VisualDesign.java, GameDesign.java, EmptyJMUnitTest.java, LocalizationSupport.java,
HelloMIDlet.java, ConverterVisualMIDlet.java, E2EWebApplication.wsclient, Jsr172Application.wsclient]

vmd.midp, vmd.midp.convertor, and vmd.game fail to specify positions for *.vmd files. If these are part of the same
DataObject as the *.java file then they should be ignored automatically by the test. If not, they can be given
position="0" if their position is irrelevant, or given real positions if relevant.

(I remember there was some issue recently in datasystems moved from mobility about secondary file recognition - perhaps
related?)
Comment 1 Jesse Glick 2008-07-22 20:45:56 UTC
*** Issue 141063 has been marked as a duplicate of this issue. ***
Comment 2 Jesse Glick 2008-07-22 20:47:23 UTC
Seems to fail randomly.

The datasystems issue I was referring to is issue #137944, now marked as a duplicate of issue #136931.
Comment 3 Jesse Glick 2008-07-22 21:03:04 UTC
Definitely random - next build passed with no related changes.

vmd.io.javame/src/org/netbeans/modules/vmd/io/javame/layer.xml

and

vmd.io.javame/src/org/netbeans/modules/vmd/io/javame/MEDesignDataLoader.java

do seem to imply that the *.java + *.vmd should be treated as a single DataObject and thus only the primary file should
be considered by VLCT.tFO, which just runs

        List<FileObject> kids = new ArrayList<FileObject>();
        for (DataObject kid : DataFolder.findFolder(folder).getChildren()) {
            kids.add(kid.getPrimaryFile());
        }
        FileUtil.getOrder(kids, true);
Comment 4 Karol Harezlak 2008-07-28 14:57:11 UTC
All *.vmd templates are part of same DataObject as *.java where *.java is primary. According to the documentation .vmd
templates as a secondary don't need to have position specified. During the review of the layers I've found one issue
which may caused problems: two of the templates has same position value (500) so I've fixed it.

changeset: 

http://hg.netbeans.org/main?cmd=changeset;node=1d51ad7aec75