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

Bug 356598

Summary: Schema Gen: Should generate xs:string for char instead of xs:anySimpleType
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipselink.oxm-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch none

Description Blaise Doughan CLA 2011-09-02 09:54:23 EDT
MOXy is currently generating attributes/elements of type xs:anySimpleType for char fields/properties instead of the correct xs:unsignedShort.
Comment 1 Blaise Doughan CLA 2011-09-12 10:08:29 EDT
CORRECTION:
MOXy should generate xs:string for char fields/properties.

To specify the XML schema type as xs:unsignedShort the @XmlSchemaType(name="unsignedShort") annotation should be used.  Unfortunately there is a bug in MOXy with this.  For more information see:

- https://bugs.eclipse.org/357381
Comment 2 Rick Barkhouse CLA 2011-09-12 11:22:47 EDT
Created attachment 203168 [details]
Patch
Comment 3 Rick Barkhouse CLA 2011-09-12 13:41:07 EDT
Fixed and checked in to 2.1, 2.2, 2.3 and trunk (2.4).
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:22:14 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink