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.
[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.
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.
Wrong component.
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.
You don't need to restart IDE. It requires only reread of properties (open and close customizer).
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)
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
Also the issue: http://www.netbeans.org/issues/show_bug.cgi?id=53606 is related to this.
Verified in 200504121800.