xml-xalan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henry Zongaro (JIRA)" <xalan-...@xml.apache.org>
Subject [jira] Updated: (XALANJ-1243) java.lang.StackOverflowError in XString.equals()
Date Fri, 24 Aug 2007 18:15:30 GMT

     [ https://issues.apache.org/jira/browse/XALANJ-1243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Henry Zongaro updated XALANJ-1243:
----------------------------------

    Attachment: patch.j1243.txt

Attaching a patch that I believe resolves this problem.

> java.lang.StackOverflowError in XString.equals()
> ------------------------------------------------
>
>                 Key: XALANJ-1243
>                 URL: https://issues.apache.org/jira/browse/XALANJ-1243
>             Project: XalanJ2
>          Issue Type: Bug
>          Components: XPath
>    Affects Versions: 2.4Dx
>         Environment: Operating System: Solaris
> Platform: Sun
>            Reporter: Wolfram
>            Assignee: Xalan Developers Mailing List
>         Attachments: 1.xml, 1.xsl, patch.j1243.txt, xalan-stack-overflow.zip
>
>
> In some special cases I get a StackOverflowError in method equals(XMLString), 
> line #444 [ if (!obj2.hasString()) return obj2.equals(this); ]
> I think this can occur if to XStringForChars-objects are compared, and both
> objects haven't been used before. Than the hasString()-method of
> XStringForChars returns false for both, resulting in an endless loop.
> I patched XStringForChars method hasString() to return always true,
> which works for me.
> Don't know if this is the right way to solve this bug.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


Mime
View raw message