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 256240

Summary: Favorites view shows duplicate content for ZIP files
Product: platform Reporter: matthias42
Component: FavoritesAssignee: Ondrej Vrabec <ovrabec>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Screenshot showing problem

Description matthias42 2015-10-28 21:49:00 UTC
Created attachment 157032 [details]
Screenshot showing problem

While I looked through bug 256015 I noticed a problem in the favorites view. This is visible for any ZIP like filetype (jar, war, openoffice documents, ...). 

To reproduce it, it is helpful to open a jar from project view and compare that to the favorites view of the same jar. In the attached screenshot I did this for a jar from my local maven repository.

The java platforms module provides a different children view for jars, which results in a package view. This works correctly in project view (no folders are shown there, only "packages"), in the favorites view this breaks from the second level down.

In the sample I opened the "package" org.apache.derby in both cases. As shown in the projects view this package only contains the file modules.properties. The subfolders are exposed as package entries on the toplevel of the jar, but in the favorites view the subfolders are shown.

I think the best thing would be if favorites would show the same view as projects view. The second best would be if favorites only showed a folder structure. The bug is, that in this case mix of both approaches is visible.