Community
Participate
Working Groups
When saving XML, the character sequence ]]> is not correctly escaped when occuring in a String to-many attribute. We are stumbling over this when saving java method bodies in UML OpaqueBehavior.body. This fails for method bodies like writer.println("<![CDATA[stuff]]>"); which is currently encoded as writer.println("<![CDATA[stuff]]>"); (note the unescaped ']]>') Specifically, I think in XMLSave.saveDataTypeMany(), Escape.escapeText() should be used instead of Escape.escape().
The fix is committed to CVS for 2.7. I assume it's pretty easy to work around this problem in older releases.
The fix is available in the latest build for the stream.