commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Work logged] (TEXT-152) infinite loop in WordUtils.wrap
Date Sun, 03 Mar 2019 21:34:00 GMT


ASF GitHub Bot logged work on TEXT-152:

                Author: ASF GitHub Bot
            Created on: 03/Mar/19 21:33
            Start Date: 03/Mar/19 21:33
    Worklog Time Spent: 10m 
      Work Description: CAPS50 commented on pull request #107: TEXT-152 - new tests and fix
for infinite loop
   Hi, I have added a test that show shows the infinite loop, and the code that fixes it.
   In order to make the test pass, and not only make the infinite loop stop happening, more
changes were needed because the code for TEXT-111 did not fix the replacement of 0 length
matches when we have multiple matches.
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

Issue Time Tracking

            Worklog Id:     (was: 206943)
            Time Spent: 10m
    Remaining Estimate: 0h

> infinite loop in WordUtils.wrap
> -------------------------------
>                 Key: TEXT-152
>                 URL:
>             Project: Commons Text
>          Issue Type: Bug
>    Affects Versions: 1.7
>            Reporter: Carlos
>            Priority: Critical
>             Fix For: 1.7
>          Time Spent: 10m
>  Remaining Estimate: 0h
> this infinite loop can be reproduced with this unit test:
> {code:java}
> @Test
> public void testWrapAtStartAndEnd() {
>     assertThat(WordUtils.wrap("nabcdefabcdefn", 2, "\n", false, "(?=n)")).isEqualTo("\nabcdefabcdef\n");
> }
> {code}

This message was sent by Atlassian JIRA

View raw message