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.
dev build 200503211900 This makes it impossible to add a library to the classpath.
Created attachment 21040 [details] stack-trace
Correction, this only seems to happen if you "Add library" while a missing library entry is selected.
Wrong component.
Introduced durring the customizer rewrite.
I've tried it and it worked for me. I've added the library with has missing jar file into j2seproject in the j2seproject customizer without exception being thrown. Did I something wrng?
The bug is there. When a lib is no longer defined, the project depends on it, an it's line is selected in the customizer, then I get the exception. Will try to fix it.
Fixed in j2seproject. Checking in src/org/netbeans/modules/java/j2seproject/ui/customizer/ClassPathUiSupport.java; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/ClassPathUiSupport.java,v <-- ClassPathUiSupport.java new revision: 1.4; previous revision: 1.3 done Checking in src/org/netbeans/modules/java/j2seproject/ui/customizer/J2SEClassPathUi.java; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/J2SEClassPathUi.java,v <-- J2SEClassPathUi.java new revision: 1.7; previous revision: 1.6 done
Created attachment 21092 [details] Diff for webaps
Passing to web apps they might want to apply the diff
Petre, thank you for the diff! Applied to the EJB project: Checking in ClassPathUiSupport.java; /cvs/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/ui/customizer/ClassPathUiSupport.java,v <-- ClassPathUiSupport.java new revision: 1.3; previous revision: 1.2 done Checking in EjbJarClassPathUi.java; /cvs/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/ui/customizer/EjbJarClassPathUi.java,v <-- EjbJarClassPathUi.java new revision: 1.5; previous revision: 1.4 done
Applied to the web project: Checking in ClassPathUiSupport.java; /cvs/web/project/src/org/netbeans/modules/web/project/ui/customizer/ClassPathUiSupport.java,v <-- ClassPathUiSupport.java new revision: 1.5; previous revision: 1.4 done Checking in WebClassPathUi.java; /cvs/web/project/src/org/netbeans/modules/web/project/ui/customizer/WebClassPathUi.java,v <-- WebClassPathUi.java new revision: 1.5; previous revision: 1.4 done