| Summary: | minOccurs not generated on element when inside xsd:all | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Blaise Doughan <blaise.doughan> | ||||||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | eclipselink.oxm-inbox | ||||||||
| Version: | unspecified | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Blaise Doughan
Created attachment 185459 [details]
MOXy - Fix
Created attachment 185554 [details]
MOXy - Test Cases
Created attachment 185555 [details]
MOXy - Fix
Correction to bug statement. The following is what should be generated: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:complexType name="root"> <xs:all> <xs:element name="duration" type="xs:int" minOccurs="0"/> </xs:all> </xs:complexType> </xs:schema> Fix checked into trunk at rev: 8728 Code reviewed by: David McCann Removed check that explicitly prevented minOccurs=0 from being written on elements declared within an all block. Fixed as per above comments. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |