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

Bug 322358

Summary: Nested CDATA sections not handled correctly
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: ondrej.cerny, tomas.kraus
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
URL: http://bdoughan.blogspot.com/2010/07/cdata-cdata-run-run-data-run.html
Whiteboard:

Description Blaise Doughan CLA 2010-08-11 10:02:36 EDT
For bug discussion see:
http://bdoughan.blogspot.com/2010/07/cdata-cdata-run-run-data-run.html

Given the following property:

   @XmlCDATA
   public void setBio(String bio) {
       this.bio = bio;
   } 

If the following value was set:

    c.setBio("<![CDATA[]]>");

Then the following invalid output would be produced:

    <c><bio><![CDATA[<![CDATA[]]>]]></bio></c>

The output should actually be the following:

    <c><bio><![CDATA[<![CDATA[]]]]><![CDATA[>]]></bio></c>
Comment 1 Ondrej Cerny CLA 2016-02-02 11:23:20 EST
This is resolved by patches attached to bug 485372
Comment 2 Tomas Kraus CLA 2016-02-03 05:07:16 EST

*** This bug has been marked as a duplicate of bug 485372 ***
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:26:36 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink