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 160761

Summary: duplicate entry in jar breaks 'viewability'
Product: platform Reporter: Vince Kraemer <vkraemer>
Component: FilesystemsAssignee: Jiri Skrivanek <jskrivanek>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: the stack trace
a screen shot

Description Vince Kraemer 2009-03-20 18:27:51 UTC
I get the attached exception in the console window when I attempt to 'expand' a jar which has duplicate entries.

see the attached screen shot for more details.

And the exception doesn't go through the 'usual' mechanisms... (a dialog box with a report button)
Comment 1 Vince Kraemer 2009-03-20 18:29:13 UTC
Created attachment 78543 [details]
the stack trace
Comment 2 Vince Kraemer 2009-03-20 18:31:02 UTC
Created attachment 78544 [details]
a screen shot
Comment 3 Jiri Skrivanek 2009-03-20 18:37:03 UTC
A jar file with duplicate entries is invalid. That's why a dialog box is shown because it is not a NetBeans issue. The
provider of the jar should fix it.


*** This issue has been marked as a duplicate of 144166 ***
Comment 4 Vince Kraemer 2009-03-20 19:53:54 UTC
breaking because you got invalid data from the user is 'the lot in life' of an IDE.

Yes. The provider of the jar should fix it.  Their bug.

The IDE should not have such a serious reaction to it. Totally our bug.

as an aside: You may want to talk to the person that implemented the view that appears when I do 'Open File...' on a jar
that has duplicate entries IN 6.5.  It seems to be 'fine'. The view is broken in 6.7...
Comment 5 Vince Kraemer 2009-03-20 20:04:36 UTC
ok... it does break once you drill down to one of the duplicated files...

it seems like the view in 6.7 is breaking... too early...