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 256452 - Project order corruption after NB startup
Summary: Project order corruption after NB startup
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Stupka
: 254743 256090 257066 257231 (view as bug list)
Depends on:
Reported: 2015-11-09 00:44 UTC by matthies
Modified: 2016-09-20 11:52 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

First screenshot (23.16 KB, image/png)
2015-11-09 00:44 UTC, matthies
Second screenshot (23.90 KB, image/png)
2015-11-09 00:44 UTC, matthies
Third screenshot (23.13 KB, image/png)
2015-11-09 00:44 UTC, matthies

Note You need to log in before you can comment on or make changes to this bug.
Description matthies 2015-11-09 00:44:01 UTC
Created attachment 157223 [details]
First screenshot

When opening the projects in the current project group upon NB startup, the projects change their display names during opening, which causes corruption of the sort order of the projects in the Projects view and in the Files view.

The reasons seems to be that during opening of the projects, the displayed name of the project changes from the Maven project name to the local directory path of the project and back again to the Maven project name. At some point during that process, sorting of the projects seems to be triggered, and they are sorted according to their momentary display name, which for some projects is the Maven project name and for others is the direcory path.

I managed to take a series of screenshots during startup that illustrate this. Initially (first screenshot), all projects are correctly sorted and are displayed with their Maven project name. Subsequently, while the projects are being opened, the projects temporarily become displayed with their directory path, and at some point are sorted according to their current display name(second screenshot). Finally, all projects end up being displayed with their Maven project name again, but retain the previous incorrect sorting (third screenshot).

This seems to only happen during NB startup. When switching to another project group and back again, the correct sort order is restored.
Comment 1 matthies 2015-11-09 00:44:35 UTC
Created attachment 157224 [details]
Second screenshot
Comment 2 matthies 2015-11-09 00:44:59 UTC
Created attachment 157225 [details]
Third screenshot
Comment 3 matthies 2015-11-09 00:45:19 UTC
PS: This didn't happen with NB 8.0.2.
Comment 4 datazuul 2015-11-11 08:30:34 UTC
can confirm this. Was correct under 8.0.2, but broken after upgrade to 8.1.

The directory names are used for first sorting, before name-tag of pom.xml is used. So in the end my project-modules are not together in the long list of all open projects...
Comment 5 Tomas Stupka 2015-11-11 16:39:40 UTC
fixed in jet-main #dd304312f2a1
Comment 6 Tomas Stupka 2015-11-11 16:42:11 UTC
*** Bug 256090 has been marked as a duplicate of this bug. ***
Comment 7 Tomas Stupka 2015-11-11 16:42:50 UTC
*** Bug 254743 has been marked as a duplicate of this bug. ***
Comment 8 Quality Engineering 2015-11-13 02:32:08 UTC
Integrated into 'main-silver', will be available in build *201511130002* on (upload may still be in progress)

User: Tomas Stupka <>
Log: Issue #256452 - Project order corruption after NB startup
Comment 9 Tomas Stupka 2015-12-10 10:24:43 UTC
*** Bug 257066 has been marked as a duplicate of this bug. ***
Comment 10 Jiri Prox 2015-12-17 16:26:41 UTC
verified in trunk
Comment 11 Tomas Stupka 2015-12-18 12:47:39 UTC
transplanted to release81
Comment 12 Jiri Prox 2016-01-04 12:20:59 UTC
*** Bug 257231 has been marked as a duplicate of this bug. ***
Comment 13 wvreeven 2016-09-20 10:23:38 UTC
This indeed is fixed in NB 8.1 and also NB 8.2 RC, but the same thing happens in the Files tab. I know the original bug was reported for the Projects tab but since the behaviours of the two tabs are so similar, I have reopened this bug. Please let me know if you prefer a new bug for this. By the way, it applies both to NB 8.1 and NB 8.2 RC.
Comment 14 wvreeven 2016-09-20 11:52:45 UTC
Also, when a Project Group is open and another Project is added to the Project Group, it gets added at the top of the list and the projects are not sorted alphabetically. I need to shutdown and restart NetBeans to get an alphabetically sorted project list again.