harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Catherine Hope (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-6547) [classlib][luni] String.replace("", CharSequence) goes out of memory
Date Thu, 10 Jun 2010 15:38:13 GMT

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

Catherine Hope closed HARMONY-6547.
-----------------------------------


> [classlib][luni] String.replace("", CharSequence) goes out of memory
> --------------------------------------------------------------------
>
>                 Key: HARMONY-6547
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6547
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Catherine Hope
>            Assignee: Mark Hindess
>            Priority: Minor
>             Fix For: 5.0M15
>
>         Attachments: 6547.patch
>
>
> Calling String.replace(CharSequence, CharSequence) with the empty String as the first
argument throws an OutOfMemoryError as it goes into an infinite loop trying to substitute
the sequence at the same point until the StringBuilder fills the heap.  The RI in this case
substitutes the replacement String at the start, inbetween each character and at the end.

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


Mime
View raw message