Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322358 - Nested CDATA sections not handled correctly
Summary: Nested CDATA sections not handled correctly
Status: RESOLVED DUPLICATE of bug 485372
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: http://bdoughan.blogspot.com/2010/07/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-11 10:02 EDT by Blaise Doughan CLA
Modified: 2022-06-09 10:26 EDT (History)
2 users (show)

See Also:


Attachments

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