[ http://issues.apache.org/jira/browse/XALANJ-1243?page=all ]

Brian Minchau updated XALANJ-1243:
----------------------------------

    Version: 2.4Dx
                 (was: Latest Development Code)

> java.lang.StackOverflowError in XString.equals()
> ------------------------------------------------
>
>          Key: XALANJ-1243
>          URL: http://issues.apache.org/jira/browse/XALANJ-1243
>      Project: XalanJ2
>         Type: Bug
>   Components: XPath
>     Versions: 2.4Dx
>  Environment: Operating System: Solaris
> Platform: Sun
>     Reporter: Wolfram
>     Assignee: Xalan Developers Mailing List
>  Attachments: 1.xml, 1.xsl, 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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to