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

Bruno P. Kinoshita commented on TEXT-76:
----------------------------------------

Issue moved to Commons Text. Confirmed issue with JaroWinkler in Commons Lang 
latest, as well as in Commons Text latest versions.

The problem is the Math.round, that rounds a very long 0.99... double number 
into 100 long. Then divides by 100D.

> Jaro Winkler implementation introduced in 3.5 is not correct
> ------------------------------------------------------------
>
>                 Key: TEXT-76
>                 URL: https://issues.apache.org/jira/browse/TEXT-76
>             Project: Commons Text
>          Issue Type: Bug
>    Affects Versions: 1.0
>            Reporter: Luc Boutier
>            Assignee: Bruno P. Kinoshita
>
> Using 3.5 commons-lang the following call return a distance of 1
> StringUtils.getJaroWinklerDistance(“/opt/software1”,  “/opt/software2”)
> Jaro Winkler says that distance of 1 means equal string which is not the case 
> here.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to