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 57738 - Cannot remove jar if it was added twice
Summary: Cannot remove jar if it was added twice
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: All All
: P4 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on: 57783
Blocks: 57782
  Show dependency tree
 
Reported: 2005-04-11 17:40 UTC by Roman Strobl
Modified: 2012-04-05 14:48 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 Roman Strobl 2005-04-11 17:40:53 UTC
[NetBeans 200504062223; JDS R3; JDK 1.5.0_03]

Currently it is possible to add two jars with the same name. Go to Libraries,
right-click to get properties and add the same jar into compile and run tab.
This produces two jars in the projects view with exactly same name (not good
IMO, but ok). Now the problem is that I can remove the first jar, but I cannot
remove the second jar. The workaround is to close the project, open it again and
then remove the jar.
Comment 1 Roman Strobl 2005-04-11 17:46:43 UTC
The same problem occurs with duplicate libraries. I can add them to both compile
and run tab. Then I'm not able to remove the second library from projects view.
Comment 2 Jesse Glick 2005-04-11 19:47:03 UTC
Wrong component.
Comment 3 Jesse Glick 2005-04-11 19:50:28 UTC
You can remove the 2nd copy in the properties dialog, just not in the logical
view. ("Remove" enabled but does nothing.) You do not need to reopen the project.
Comment 4 Tomas Zezula 2005-04-12 15:51:52 UTC
You don't need to restart IDE. It requires only reread of properties (open and
close customizer).
Comment 5 Tomas Zezula 2005-04-12 16:23:28 UTC
I've created new issue about restricting an user to add the jar/lib/proejct
twice (http://www.netbeans.org/issues/show_bug.cgi?id=57783)
Comment 6 Tomas Zezula 2005-04-12 16:36:30 UTC
Checking in
j2seproject/src/org/netbeans/modules/java/j2seproject/ui/LibrariesNode.java;
/cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/LibrariesNode.java,v
 <--  LibrariesNode.java
new revision: 1.15; previous revision: 1.14
done
Comment 7 Tomas Zezula 2005-04-12 16:37:06 UTC
Also the issue: http://www.netbeans.org/issues/show_bug.cgi?id=53606 is related
to this.
Comment 8 Roman Strobl 2005-04-13 15:00:44 UTC
Verified in 200504121800.