Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356598 - Schema Gen: Should generate xs:string for char instead of xs:anySimpleType
Summary: Schema Gen: Should generate xs:string for char instead of xs:anySimpleType
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-02 09:54 EDT by Blaise Doughan CLA
Modified: 2022-06-09 10:22 EDT (History)
1 user (show)

See Also:


Attachments
Patch (2.98 KB, patch)
2011-09-12 11:22 EDT, Rick Barkhouse CLA
no flags Details | Diff

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