[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [jira] [Work logged] (TEXT-211) TextStringBuilder equals method changed behaviour from 1.8 to 1.9
From:       "ASF GitHub Bot (Jira)" <jira () apache ! org>
Date:       2022-03-31 14:38:00
Message-ID: JIRA.13388419.1625755525000.513210.1648737480033 () Atlassian ! JIRA
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/TEXT-211?focusedWorklogId=751019&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-751019 \
]

ASF GitHub Bot logged work on TEXT-211:
---------------------------------------

                Author: ASF GitHub Bot
            Created on: 31/Mar/22 14:37
            Start Date: 31/Mar/22 14:37
    Worklog Time Spent: 10m 
      Work Description: garydgregory commented on pull request #281:
URL: https://github.com/apache/commons-text/pull/281#issuecomment-1084673484


   https://issues.apache.org/jira/browse/TEXT-211


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 751019)
    Time Spent: 6h 20m  (was: 6h 10m)

> 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.1#820001)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic