Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341706

Summary: Report unresolvable namespace usage
Product: z_Archived Reporter: Konstantin Komissarchik <konstantin>
Component: SapphireAssignee: Konstantin Komissarchik <konstantin>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ling.hao
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Konstantin Komissarchik CLA 2011-04-02 18:54:00 EDT
When namespace prefix is referenced in one of the XML binding annotations, it must be resolvable to a namespace URI using the @XmlNamespace, @XmlNamespaces or @XmlRootBinding annotations on the containing type. If the developer forgets the declaration, the system silently continues and uses unqualified name. This behavior isn't really desirable and the developer should be informed of the problem.
Comment 1 Konstantin Komissarchik CLA 2011-04-02 18:56:12 EDT
Added an exception during binding initialization to catch this case. Implemented a few unit tests to go along with this scenario... TestXmlBinding0004, TestXmlBinding0005 and TestXmlBinding0006.

Also improved how the form editor page handles an exception during initialization. Made sure that partially-initialized UI components are disposed and in their place a UI is rendered to show information about the failure.
Comment 2 Ling Hao CLA 2011-06-10 18:05:08 EDT
Verified test cases.