| Summary: | @XmlElementBinding.Mapping(element="", type=ISomething.class) should trigger exception | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Shenxue Zhou <shenxue.zhou> |
| Component: | Sapphire | Assignee: | Konstantin Komissarchik <konstantin> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | konstantin |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Shenxue Zhou
The illegal usage looks like the following examples: @XmlElementBinding( mappings = @XmlElementBinding.Mapping( element = "", type = IMyElement.class ) ) @XmlListBinding( mappings = @XmlListBinding.Mapping( element = "", type = IMyElement.class ) ) Added a check and a better worded exception. Wrote two unit tests. The error messages look like this: ITestXmlBinding0001ModelElement.TestProperty : Element name must be specified in @XmlElementBinding.Mapping annotation. Should be pretty self-explanatory at this point. Fixed. Verified that there is a clear message for this case. |