[ 
https://issues.apache.org/jira/browse/TEXT-211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17528754#comment-17528754
 ] 

Gary D. Gregory commented on TEXT-211:
--------------------------------------

The person who opened the ticket or I can do it (or anyone with proper access 
rights in the project)

> TextStringBuilder equals method changed behaviour from 1.8 to 1.9
> -----------------------------------------------------------------
>
>                 Key: TEXT-211
>                 URL: https://issues.apache.org/jira/browse/TEXT-211
>             Project: Commons Text
>          Issue Type: Bug
>    Affects Versions: 1.9
>            Reporter: Nikolaos Georgiou
>            Priority: Major
>             Fix For: 1.10
>
>          Time Spent: 6h 20m
>  Remaining Estimate: 0h
>
> We found a regression (or breaking compatibility change) in the 
> TextStringBuilder equals method when upgrading commons-text from 1.8 to 1.9
>  
> The 1.8 version ( 
> [https://github.com/apache/commons-text/blob/commons-text-1.8/src/main/java/org/apache/commons/text/TextStringBuilder.java#L2915]
>  ) would only compare the parts of the buffer that fall within the range 
> 0..size.
> The 1.9 version ( 
> [https://github.com/apache/commons-text/blob/rel/commons-text-1.9/src/main/java/org/apache/commons/text/TextStringBuilder.java#L1855]
>  ) compares the entire buffer arrays.
> If a TextStringBuilder has extra capacity in the buffer, comparison fails.
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to