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

Bug 355143

Summary: Bug with CDATA and marshal to contenthandler
Product: z_Archived Reporter: Denise Smith <denise.mahar>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: blaise.doughan, radek.felcman
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Denise Smith CLA 2011-08-18 14:31:35 EDT
CDATA won't work with marshal to contenthandler method.  We should

1- During marshal see if the contenthandler also implements lexicalhandler and if yes than pass it along (instead of null).

2- Modify SAXDocumentBuilder to implement LexicalHandler



To recreate go to test
package org.eclipse.persistence.testing.jaxb.externalizedmetadata.mappings.directcollection.DirectCollectionMappingTestCases

and delete the empty testObjectToContentHandler method
Comment 1 Denise Smith CLA 2011-08-24 13:33:26 EDT
Additionally delete the same empty method in 
org.eclipse.persistence.testing.jaxb.externalizedmetadata.mappings.direct.DirectMappingTestCases
Comment 2 Denise Smith CLA 2011-08-25 12:51:08 EDT
Another test to be updated
org.eclipse.persistence.testing.jaxb.annotations.xmlnullpolicy.XmlNullPolicyTestCases
Comment 3 Denise Smith CLA 2011-09-09 16:12:35 EDT
Another test with the empty method
org.eclipse.persistence.testing.jaxb.annotations.cdata.XmlCDATATestCases and XmlCDATAOverrideTestCases
Comment 4 Blaise Doughan CLA 2011-09-19 11:49:28 EDT
Another test with empty method:
org.eclipse.persistence.testing.jaxb.annotations.cdata.UnmappedCDATATestCases
Comment 5 Radek Felcman CLA 2018-06-05 02:22:41 EDT
Fixed as a part of patch for a bug no 534812.
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=534812
Comment 6 Eclipse Webmaster CLA 2022-06-09 10:15:08 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 7 Eclipse Webmaster CLA 2022-06-09 10:21:28 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink