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

Bug 316014

Summary: Tweak MOXy's XMLStreamWriterRecord to work with Jettison's JSON/StAX support
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Core - Fix none

Description Blaise Doughan CLA 2010-06-07 11:29:31 EDT
The Jersey JAX-RS implemenation uses Jettison to marshal objects as JSON.  There are a couple changes that need to be made in MOXy's XMLStreamWriterRecord to make this work:

1.  Only set the encoding when it is different than the default (utf-8).
2.  If there is no NamespaceContext, then write without any namespace information.
Comment 1 Blaise Doughan CLA 2010-06-07 11:31:22 EDT
Created attachment 171286 [details]
Core - Fix
Comment 2 Blaise Doughan CLA 2010-06-10 17:02:11 EDT
Fix checked into trunk at rev:  7593

Code reviewed by Matt MacIvor
Comment 3 Blaise Doughan CLA 2010-06-23 15:17:33 EDT
Fix backported to 2.1.1 at rev:  7669
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:36:05 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink