On Fri, 28 Feb 2025 17:42:24 GMT, Joe Wang <[email protected]> wrote:

> Fix handleCharacters by adding a guard to zero length and letting the rest of 
> the process continue (e.g. closing tags and etc).

src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/trax/StAXStream2SAX.java
 line 286:

> 284:         if (textLength > 0) {
> 285:             staxStreamReader.getTextCharacters(0, chars, 0, textLength);
> 286:         }

Hi Joe,
The comment above this piece reads:

        // workaround for bugid 5046319 - switch over to commented section
        // below when it is fixed.

And the bug 5046319 (closed issue about AIOOBE) is fixed. Should the commented 
section be considered?

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/23847#discussion_r1976081092

Reply via email to