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.
Steps to reproduce: Create new valid BPEL process. Create new schema and add simple type to it. Open process and invoke Add Variable command. In dialog window uncheck 'Show Imported files Only' checkbox. Select Schema. Select created schema element Close dialog. Invoke process validation. The validation fails.
This scenariois an absolutely correct usecase but it generates invalid code. A workaround exists, but I suppose we should fix this unless the fix is too risky
Problem is that the import statement that is generated is not complete statment. For example this is generated. <import location="newpo.xsd" importType="http://www.w3.org/2001/XMLSchema"/> Notice that the namespace attribute is totally missing. It should be something like this <import namespace="http://xml.netbeans.org/schema/newXMLSchema" location="newpo.xsd" importType="http://www.w3.org/2001/XMLSchema"/> Therefore there is some problem with the add import logic in this particular scenario.
Mike, assume this is for Denis/SPB, not monrovia. Pls reassign.
It is responsibility of client UI to set "namespace" attribute with correct value.
Fixed and committed to the release55_dev branch
Created attachment 35226 [details] result of: cvs -q diff -c
Fix looks well.
Fixed in the release55 branch
Fixed
Verified on NetBeans IDE 6.0 Preview (M9, build 070502) and Windows XP version 5.1 running on x86