cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r452138 - in /cocoon/branches/BRANCH_2_1_X: src/java/org/apache/cocoon/generation/JXTemplateGenerator.java status.xml
Date Mon, 02 Oct 2006 17:32:00 GMT
Author: joerg
Date: Mon Oct  2 10:32:00 2006
New Revision: 452138

URL: http://svn.apache.org/viewvc?view=rev&rev=452138
Log:
Fix COCOON-1866: ArrayIndexOutOfBoundsException with jx:comment

Modified:
    cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/JXTemplateGenerator.java
    cocoon/branches/BRANCH_2_1_X/status.xml

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/JXTemplateGenerator.java
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/JXTemplateGenerator.java?view=diff&rev=452138&r1=452137&r2=452138
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/JXTemplateGenerator.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/JXTemplateGenerator.java
Mon Oct  2 10:32:00 2006
@@ -2988,8 +2988,7 @@
                 Properties omit = XMLUtils.createPropertiesForXML(true);
                 for (int i = 0; i < len; i++) {
                     try {
-                        String str = XMLUtils.serializeNode(nodeList.item(i), omit);
-                        buf.append(StringUtils.substringAfter(str, ">")); // cut the XML
header
+                        buf.append(XMLUtils.serializeNode(nodeList.item(i), omit));
                     } catch (Exception e) {
                         throw new JXTException(e.getMessage(), startJXComment.location, e);
                     }

Modified: cocoon/branches/BRANCH_2_1_X/status.xml
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/status.xml?view=diff&rev=452138&r1=452137&r2=452138
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/status.xml (original)
+++ cocoon/branches/BRANCH_2_1_X/status.xml Mon Oct  2 10:32:00 2006
@@ -184,6 +184,9 @@
   <release version="@version@" date="@date@">
 -->
   <release version="2.1.10" date="TBD">
+    <action dev="JH" type="fix" fixes-bug="COCOON-1866" due-to="Ellis Pritchard" due-to-email="ellis@nukinetics.com">
+      JXTemplate: Fix an ArrrayIndexOutOfBoundsException with jx:comment.
+    </action>
     <action dev="AS" type="fix" fixes-bug="COCOON-1818" due-to="Jasha Joachimsthal">
       Apply patch to handle malformed recipient address exception correctly.
     </action>



Mime
View raw message