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.
I have an issue with the form editor when using beans depending on resources from a project's classpath by looking them up using ClassLoader.getResources() instead of ClassLoader.getResource(). The problem is in class ProjectClassLoader which overwrites method findResource but does not overwrite method findResources. That makes all resources disappear from a project's classpath when they are accessed by getResources instead of getResource. The attached patch fixes this.
Created attachment 74723 [details] Patch to also overwrite method findResources in class ProjectClassLoader
Created attachment 75322 [details] Updated patch to merge resources from the project with the resource of its classpath.
Thank you for the patch, it seems to be correct. I have integrated the suggested changes. Please, check one of the upcoming development builds to verify that the fix works as you expect. Thank you in advance. Modified files: http://hg.netbeans.org/main?cmd=changeset;node=b506b06ea917