Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316014 - Tweak MOXy's XMLStreamWriterRecord to work with Jettison's JSON/StAX support
Summary: Tweak MOXy's XMLStreamWriterRecord to work with Jettison's JSON/StAX support
Status: RESOLVED 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: 2010-06-07 11:29 EDT by Blaise Doughan CLA
Modified: 2022-06-09 10:36 EDT (History)
0 users

See Also:


Attachments
Core - Fix (3.87 KB, patch)
2010-06-07 11:31 EDT, Blaise Doughan 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 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