| Summary: | JAXB Externalized Metadata: minoccurs for xml-path elements not being set and are hence required | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | David McCann <david.mccann> | ||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | blaise.doughan | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 308677 | ||||||
| Attachments: |
|
||||||
|
Description
David McCann
This blocks bug# 308677 (JAXB Externalized Metadata JUnit: mappings tests should validate instance docs against generated schema) because in the read-only case, to be valid against the schema the instance document must have empty elements up to and including the last element of the path. For example: <employee><read-only><stuff/></read-only></employee> BUT, when we marshal we will only write out: <employee/> Which is not valid against the schema. Test method testSchemaGenAndValidation in externalizedmetadata.mappings.anyattribute.AnyAttributeMappingTestCases contains commented out code that can verify the fix. Test method testSchemaGenAndValidation in externalizedmetadata.mappings.anyattribute.AnyCollectionMappingTestCases and externalizedmetadata.mappings.anyattribute.AnyObjectMappingTestCases contains commented out code that can verify the fix. Test method testSchemaGenAndValidation in externalizedmetadata.mappings.binarydatacollection.BinaryDataCollectionMappingTestCases has a commented out section that can be enabled when this bug is fixed. Created attachment 169404 [details]
proposed fix and updates tests
Attached patch checked into SVN The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |