Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341706 - Report unresolvable namespace usage
Summary: Report unresolvable namespace usage
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sapphire (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Komissarchik CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-02 18:54 EDT by Konstantin Komissarchik CLA
Modified: 2021-11-19 09:22 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.